Sha256: ef1620d0947c6a8a5a3d125ea41d02a1c433aced75226f03e2d23b5a41323872

Contents?: true

Size: 680 Bytes

Versions: 17

Compression:

Stored size: 680 Bytes

Contents

require 'spec_helper'

describe 'model without orm' do
  use_orm :none
  use_helper :model

  before :each do  
    Rails3::Assist::Directory.rails_root = fixtures_dir
  end

  after :each do              
    # remove_model :account
  end

  describe '#new_artifact_content' do
    it "should create artifact content" do
      content = new_artifact_content :person, :content => '# Hello', :type => :model
      content.should have_comment 'Hello'
    end
  end

  describe '#create_artifact' do
    it "should create artifact" do
      create_artifact :person, :type => :model do
        '# Hello'
      end
      
      has_model?(:person).should be_true
    end    
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
rails3_artifactor-0.4.0 spec/rails3_artifactor/base/crud/create_spec.rb
rails3_artifactor-0.3.2 spec/rails3_artifactor/base/crud/create_spec.rb
rails3_artifactor-0.3.1 spec/rails3_artifactor/base/crud/create_spec.rb
rails3_artifactor-0.3.0 spec/rails3_artifactor/base/crud/create_spec.rb
rails3_artifactor-0.2.8 spec/rails3_artifactor/base/crud/create_spec.rb
rails3_artifactor-0.2.7 spec/rails3_artifactor/base/crud/create_spec.rb
rails3_artifactor-0.2.6 spec/rails3_artifactor/base/crud/create_spec.rb
rails3_artifactor-0.2.5 spec/rails3_artifactor/base/crud/create_spec.rb
rails3_artifactor-0.2.4 spec/rails3_artifactor/base/crud/create_spec.rb
rails3_artifactor-0.2.3 spec/rails3_artifactor/base/crud/create_spec.rb
rails3_artifactor-0.2.2 spec/rails3_artifactor/base/crud/create_spec.rb
rails3_artifactor-0.2.1 spec/rails3_artifactor/base/crud/create_spec.rb
rails3_artifactor-0.1.5 spec/rails3_artifactor/base/crud/create_spec.rb
rails3_artifactor-0.1.4 spec/rails3_artifactor/base/crud/create_spec.rb
rails3_artifactor-0.1.3 spec/rails3_artifactor/base/crud/create_spec.rb
rails3_artifactor-0.1.2 spec/rails3_artifactor/base/crud/create_spec.rb
rails3_artifactor-0.1.1 spec/rails3_artifactor/base/crud/create_spec.rb