Sha256: 509b9fa5cd52e585f8fe1a9b9894fa961b51959b8ba19d47c1860b0d2a100cd2

Contents?: true

Size: 328 Bytes

Versions: 15

Compression:

Stored size: 328 Bytes

Contents

require 'rails_helper'

RSpec.describe Team, type: :model do

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

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

  it "should be created by a user" do 
    Team.make.creator.kind_of?(User).should == true
  end

end

Version data entries

15 entries across 15 versions & 1 rubygems

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