diff options
Diffstat (limited to 'test/generators')
-rw-r--r-- | test/generators/mailbox_generator_test.rb | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/test/generators/mailbox_generator_test.rb b/test/generators/mailbox_generator_test.rb index 8d3687cbaa..26ab5a44d7 100644 --- a/test/generators/mailbox_generator_test.rb +++ b/test/generators/mailbox_generator_test.rb @@ -57,7 +57,8 @@ class MailboxGeneratorTest < Rails::Generators::TestCase end def test_invokes_default_test_framework - run_generator %w(inbox foo bar -t=test_unit) + run_generator %w(inbox -t=test_unit) + assert_file "test/mailboxes/inbox_mailbox_test.rb" do |test| assert_match(/class InboxMailboxTest < ActionMailbox::TestCase/, test) assert_match(/# test "receive mail" do/, test) @@ -65,15 +66,6 @@ class MailboxGeneratorTest < Rails::Generators::TestCase end end - def test_actions_are_turned_into_methods - run_generator %w(inbox foo bar) - - assert_file "app/mailboxes/inbox_mailbox.rb" do |mailbox| - assert_instance_method :foo, mailbox - assert_instance_method :bar, mailbox - end - end - def test_mailbox_on_revoke run_generator run_generator ["inbox"], behavior: :revoke |