summaryrefslogtreecommitdiff
path: root/engines/support/test
diff options
context:
space:
mode:
Diffstat (limited to 'engines/support/test')
-rw-r--r--engines/support/test/factories.rb2
-rw-r--r--engines/support/test/functional/ticket_mailer_test.rb7
-rw-r--r--engines/support/test/unit/ticket_test.rb2
3 files changed, 9 insertions, 2 deletions
diff --git a/engines/support/test/factories.rb b/engines/support/test/factories.rb
index bcf41e8..3fc28b3 100644
--- a/engines/support/test/factories.rb
+++ b/engines/support/test/factories.rb
@@ -2,7 +2,7 @@ FactoryGirl.define do
factory :ticket do
subject { Faker::Lorem.sentence }
- email { Faker::Internet.email }
+ email { "fake@example.org" }
factory :ticket_with_comment do
comments_attributes do
diff --git a/engines/support/test/functional/ticket_mailer_test.rb b/engines/support/test/functional/ticket_mailer_test.rb
new file mode 100644
index 0000000..6bbaaaf
--- /dev/null
+++ b/engines/support/test/functional/ticket_mailer_test.rb
@@ -0,0 +1,7 @@
+require 'test_helper'
+
+class TicketMailerTest < ActionMailer::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end
diff --git a/engines/support/test/unit/ticket_test.rb b/engines/support/test/unit/ticket_test.rb
index 678d8dc..c64e8f4 100644
--- a/engines/support/test/unit/ticket_test.rb
+++ b/engines/support/test/unit/ticket_test.rb
@@ -13,7 +13,7 @@ class TicketTest < ActiveSupport::TestCase
end
test "ticket validates email format" do
- t = FactoryGirl.build :ticket, email: "aswerssfd"
+ t = FactoryGirl.build :ticket, email: "invalid email"
assert !t.valid?
end