Sha256: 9b13763910e227a926fd43e3ba5d198da198bc7726dc150beb5b1958679d0354

Contents?: true

Size: 438 Bytes

Versions: 4

Compression:

Stored size: 438 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper.rb'

describe Spraypaint::Model::Tag do
  before(:each) do
    @class = Spraypaint::Model::Tag
    @it = Spraypaint::Model::Tag.new
  end
  
  describe "(in general)" do
    it "should be valid with a name" do
      @it.name = 'name'
      @it.should be_valid
    end
    
    it "should not be valid without a name" do
      @it.name = nil
      @it.should_not be_valid
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spraypaint-1.0.3 test/spec/models/tag_spec.rb
spraypaint-1.0.2 test/spec/models/tag_spec.rb
spraypaint-1.0.1 test/spec/models/tag_spec.rb
spraypaint-1.0.0 test/spec/models/tag_spec.rb