Sha256: 750079f03b763f012a8ea93b9dd4d5dbb381f21acb701042ea30e8b6eadbf51f

Contents?: true

Size: 628 Bytes

Versions: 1

Compression:

Stored size: 628 Bytes

Contents

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

describe 'rails helper' do
  load_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      
    Rails.application.should have_helper :account do |file|
      file.should have_helper_class :account do |klass|
        klass.should have_method :help_me
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
generator-spec-0.5.0 spec/generator_spec/matchers/rails/helper_matcher_spec.rb