Sha256: 4134b38224fa0add521a0dfb22d6b8876b0d7b561b3b9a59055b81be8bda5b03

Contents?: true

Size: 346 Bytes

Versions: 15

Compression:

Stored size: 346 Bytes

Contents

require 'rails_helper'

RSpec.describe Project, type: :model do

  it "should make a valid instance" do 
    Project.make.valid?.should == true
  end

  it "should save a valid instance" do 
    Project.make!.should == Project.last
  end

  it "should be owned by a company" do 
    Project.make.owner.kind_of?(Company).should == true
  end

end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
introspective_grape-0.3.2 spec/models/project_spec.rb
introspective_grape-0.3.1 spec/models/project_spec.rb
introspective_grape-0.3.0 spec/models/project_spec.rb
introspective_grape-0.2.9 spec/models/project_spec.rb
introspective_grape-0.2.8 spec/models/project_spec.rb
introspective_grape-0.2.7 spec/models/project_spec.rb
introspective_grape-0.2.6 spec/models/project_spec.rb
introspective_grape-0.2.5 spec/models/project_spec.rb
introspective_grape-0.2.4 spec/models/project_spec.rb
introspective_grape-0.2.3 spec/models/project_spec.rb
introspective_grape-0.2.2 spec/models/project_spec.rb
introspective_grape-0.2.0 spec/models/project_spec.rb
introspective_grape-0.1.9 spec/models/project_spec.rb
introspective_grape-0.0.4 spec/models/project_spec.rb
introspective_grape-0.0.3 spec/models/project_spec.rb