Sha256: 535858d9a8652058bc6d6029d8714b7c7e9b3fabd828c9ae845ccaae8b2c81be

Contents?: true

Size: 733 Bytes

Versions: 9

Compression:

Stored size: 733 Bytes

Contents

require 'spec_helper'

root_dir = Rails3::Assist::Directory.rails_root

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_not have_mailer :user
    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

9 entries across 9 versions & 1 rubygems

Version Path
rails-app-spec-0.3.2 spec/rails_app_spec/matchers/artifact/mailer_spec.rb
rails-app-spec-0.3.1 spec/rails_app_spec/matchers/artifact/mailer_spec.rb
rails-app-spec-0.3.0 spec/rails_app_spec/matchers/artifact/mailer_spec.rb
rails-app-spec-0.2.16 spec/rails_app_spec/matchers/artifact/mailer_spec.rb
rails-app-spec-0.2.15 spec/rails_app_spec/matchers/artifact/mailer_spec.rb
rails-app-spec-0.2.14 spec/rails_app_spec/matchers/artifact/mailer_spec.rb
rails-app-spec-0.2.13 spec/rails_app_spec/matchers/artifact/mailer_spec.rb
rails-app-spec-0.2.12 spec/rails_app_spec/matchers/artifact/mailer_spec.rb
rails-app-spec-0.2.10 spec/rails_app_spec/matchers/artifact/mailer_spec.rb