Sha256: 29cbd2f3ee6571e89089b489b1a8b1ab88afca0727b8a1b8ac439ed45f43e8a2

Contents?: true

Size: 720 Bytes

Versions: 14

Compression:

Stored size: 720 Bytes

Contents

require 'spec_helper'

root_dir = Rails3::Assist::Directory.rails_root

describe 'rails helper' do
  use_helper :helper

  before :each do              
    create_helper :account do
      %q{
        def help_me
        end
      }
    end    
  end

  after :each do              
    remove_helper :account
  end
    
  it "should have an account_helper file that contains an AccountHelper class with a help_me method inside" do      
    root_dir.should have_helper_file :account do |file|
      file.should have_helper_class :account do |klass|
        klass.should have_method :help_me
      end
    end

    root_dir.should have_helper :account do |klass|
      klass.should have_method :help_me
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
rails-app-spec-0.3.2 spec/rails_app_spec/matchers/artifact/helper_spec.rb
rails-app-spec-0.3.1 spec/rails_app_spec/matchers/artifact/helper_spec.rb
rails-app-spec-0.3.0 spec/rails_app_spec/matchers/artifact/helper_spec.rb
rails-app-spec-0.2.16 spec/rails_app_spec/matchers/artifact/helper_spec.rb
rails-app-spec-0.2.15 spec/rails_app_spec/matchers/artifact/helper_spec.rb
rails-app-spec-0.2.14 spec/rails_app_spec/matchers/artifact/helper_spec.rb
rails-app-spec-0.2.13 spec/rails_app_spec/matchers/artifact/helper_spec.rb
rails-app-spec-0.2.12 spec/rails_app_spec/matchers/artifact/helper_spec.rb
rails-app-spec-0.2.10 spec/rails_app_spec/matchers/artifact/helper_spec.rb
rails-app-spec-0.2.8 spec/rails_app_spec/matchers/artifact/helper_spec.rb
rails-app-spec-0.2.7 spec/rails_app_spec/matchers/artifact/helper_spec.rb
rails-app-spec-0.2.5 spec/rails_app_spec/matchers/artifact/helper_spec.rb
rails-app-spec-0.2.4 spec/rails_app_spec/matchers/artifact/helper_spec.rb
rails-app-spec-0.2.3 spec/rails_app_spec/matchers/artifact/helper_spec.rb