Sha256: 6f5af55c69c0bad4d462c89706bc1b5c1bc3e9bf94576b09949b1bb74a0d02a4
Contents?: true
Size: 637 Bytes
Versions: 2
Compression:
Stored size: 637 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper') describe 'rails helper' do include RSpec::Rails::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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
generator-spec-0.4.8 | spec/generator_spec/matchers/rails/helper_matcher_spec.rb |
generator-spec-0.4.7 | spec/generator_spec/matchers/rails/helper_matcher_spec.rb |