Sha256: 79ef2c952c7b660edf25289734ed41c976e6ffad631b242f9b85c45a636ffc3f
Contents?: true
Size: 922 Bytes
Versions: 3
Compression:
Stored size: 922 Bytes
Contents
require 'spec_helper' describe 'controller' do use_helpers :app, :controller before :each do remove_controller :account create_controller :account do %q{ def index end } end end after :each do # remove_controller :account end it "should have an account_controller file that contains an index method and two inserted comments" do insert_into_controller :account, :content => '# hello' insert_into_controller :account do '# goodbye' end read_controller(:account).should have_comment 'hello' puts read_controller(:account) # root_dir.should have_controller :account do |controller_file| # controller_file.should have_method :index # controller_file.should have_comment 'hello' # controller_file.should have_comment 'goodbye' # end end end
Version data entries
3 entries across 3 versions & 1 rubygems