Sha256: 9d85c9282bfbd6cc80e3df38ab793491f3c98782c10938ab60d39c4add643926

Contents?: true

Size: 259 Bytes

Versions: 8

Compression:

Stored size: 259 Bytes

Contents

require 'spec_helper.rb'

describe Sprocket do

  it "should not be valid with bad inputs" do
    sprocket = Sprocket.new(integer_gt_2: 1, text_only_letters: 'abcd4')
    expect(sprocket.valid?).to be_false
    expect(sprocket.errors.count).to eq 2
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
lev-2.1.0 spec/sprocket_spec.rb
lev-2.0.5 spec/sprocket_spec.rb
lev-2.0.4 spec/sprocket_spec.rb
lev-2.0.3 spec/sprocket_spec.rb
lev-2.0.2 spec/sprocket_spec.rb
lev-2.0.1 spec/sprocket_spec.rb
lev-1.0.1 spec/sprocket_spec.rb
lev-1.0.0 spec/sprocket_spec.rb