Sha256: 104431d0a49461910345143b1779865e401be2c861c19e9556bec62503297293

Contents?: true

Size: 481 Bytes

Versions: 5

Compression:

Stored size: 481 Bytes

Contents

require 'spec_helper'

describe ApiClient::Base do
  describe "#initialize" do
    context "with a hash {:a => 'a', :b => 'b'}" do
      before :each do
        @user = User.new({:a => "a", :b => "b"})
      end

      it "should set #a" do
        @user.a.should == "a"
      end

      it "should set #b" do
        @user.b.should == "b"
      end
    end
  end

  describe "#persisted?" do
    it "should return false" do
      User.new.should_not be_persisted
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
api-client-1.3.0 spec/api-client/base_spec.rb
api-client-1.2.0 spec/api-client/base_spec.rb
api-client-1.1.1 spec/api-client/base_spec.rb
api-client-1.1.0 spec/api-client/base_spec.rb
api-client-1.0.0 spec/api-client/base_spec.rb