Sha256: 524121cd180515e8eac71ec8260e7b3f7c51f46615b5faf8715972086d272132

Contents?: true

Size: 693 Bytes

Versions: 1

Compression:

Stored size: 693 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper')

describe 'mailer helper' do
  load_helper :mailer

  before :each do              
    create_mailer :account do
      %q{
        def mail_it!
        end
      }
    end    
  end

  after :each do              
    remove_mailer :account
  end
    
  it "should have an account mailer file with a mail_it! method inside" do      
    root_dir.should have_mailer :account do |klass|
      klass.should have_method :mail_it!
    end

    root_dir.should have_mailer_file :account do |file|
      file.should have_mailer_class :account do |klass|
        klass.should have_method :mail_it!
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails-app-spec-0.1.0 spec/rails_app_spec/matchers/artifact/mailer_spec.rb