Sha256: bd5f5553f6760a7377a96fa1ce3c7b2297717efd62ecb13131d55010885c1f31

Contents?: true

Size: 833 Bytes

Versions: 3

Compression:

Stored size: 833 Bytes

Contents

require 'spec_helper'

describe 'helper' do
  use_helpers :app, :helper

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

  after :each do              
    # remove_helper :account
  end
    
  it "should have an account_helper file that contains an index method and two inserted comments" do
    insert_into_helper :account, :content => '# hello'
    insert_into_helper :account do
      '# goodbye'
    end
    read_helper(:account).should have_comment 'hello'
    puts read_helper(:account)
    # root_dir.should have_helper :account do |helper_file|
    #   helper_file.should have_method :index
    #   helper_file.should have_comment 'hello'
    #   helper_file.should have_comment 'goodbye'
    # end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rails3_assist-0.2.4 spec/rails3_assist/artifact/helper/helper_spec.rb
rails3_assist-0.2.3 spec/rails3_assist/artifact/helper/helper_spec.rb
rails3_assist-0.2.2 spec/rails3_assist/artifact/helper/helper_spec.rb