Sha256: 3fb281a2567ac2051c0a612c5e22503f512e88307e814d7b790858fb7efa07d3
Contents?: true
Size: 759 Bytes
Versions: 2
Compression:
Stored size: 759 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper') describe 'model helper' do include RSpec::Rails::Orm::ActiveRecord before :each do create_model :account end after :each do remove_model :account end it "should have an :account model file that contains an Account class" do Rails.application.should have_model :account do |file| file.should have_class :account end end end describe 'model helper - no ORM helper' do include RSpec::Rails::Model after :each do remove_model :account end it "should not be able to create a model without including an ORM helper" do lambda {create_model :account}.should raise_error end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
generator-spec-0.4.8 | spec/generator_spec/matchers/rails/model_matcher_spec.rb |
generator-spec-0.4.7 | spec/generator_spec/matchers/rails/model_matcher_spec.rb |