Sha256: ed18ff27601b024f0bf3a9ced5dd4bcf369307b4d6854a74d5e696782e5a412b

Contents?: true

Size: 326 Bytes

Versions: 16

Compression:

Stored size: 326 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

16 entries across 16 versions & 1 rubygems

Version Path
introspective_grape-0.6.1 spec/models/team_spec.rb
introspective_grape-0.5.7 spec/models/team_spec.rb
introspective_grape-0.5.6 spec/models/team_spec.rb
introspective_grape-0.5.5 spec/models/team_spec.rb
introspective_grape-0.5.4 spec/models/team_spec.rb
introspective_grape-0.5.2 spec/models/team_spec.rb
introspective_grape-0.5.0 spec/models/team_spec.rb
introspective_grape-0.4.3 spec/models/team_spec.rb
introspective_grape-0.4.2 spec/models/team_spec.rb
introspective_grape-0.4.1 spec/models/team_spec.rb
introspective_grape-0.4.0 spec/models/team_spec.rb
introspective_grape-0.3.9 spec/models/team_spec.rb
introspective_grape-0.3.7 spec/models/team_spec.rb
introspective_grape-0.3.6 spec/models/team_spec.rb
introspective_grape-0.3.5 spec/models/team_spec.rb
introspective_grape-0.3.3 spec/models/team_spec.rb