Sha256: 19dd52f2386c252673b8c007240231d000fa9e5f4dc774687ead1a369f901178

Contents?: true

Size: 304 Bytes

Versions: 3

Compression:

Stored size: 304 Bytes

Contents

require 'spec_helper'

describe ApiClient::Errors do
  describe "#unique_messages" do
    before :each do
      @user = User.new
      @user.valid?
    end

    it "should set #a" do
      @user.errors.unique_messages.should == { :a => "can't be blank and is not included in the list" }
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
api-client-1.5.0 spec/api-client/errors_spec.rb
api-client-1.4.1 spec/api-client/errors_spec.rb
api-client-1.4.0 spec/api-client/errors_spec.rb