Sha256: a1d5d69bbfaece622f8b13515a3f26dfa224f434cdcb8fd73ba5efa01d81a081
Contents?: true
Size: 816 Bytes
Versions: 18
Compression:
Stored size: 816 Bytes
Contents
require 'spec_helper' describe 'model with active_record' do use_orm :active_record before :each do remove_model :account create_model :account do %q{def index end} end end after :each do # remove_model :account end it "should have an account_model file that contains an index method and two inserted comments" do insert_into_model :account, :content => '# hello' insert_into_model :account do '# goodbye' end puts read_model(:account) read_model(:account).should have_comment 'hello' # root_dir.should have_model :account do |model_file| # model_file.should have_method :index # model_file.should have_comment 'hello' # model_file.should have_comment 'goodbye' # end end end
Version data entries
18 entries across 18 versions & 2 rubygems