Sha256: 1281357a1108dc2492821560ab58118707851713293abb3d8c5b8a9fc7c81948
Contents?: true
Size: 909 Bytes
Versions: 7
Compression:
Stored size: 909 Bytes
Contents
require 'spec_helper' describe 'model without any orm' do use_orm :none before do RailsAssist::Directory.rails_root = File.dirname (__FILE__) end 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
7 entries across 7 versions & 1 rubygems