Sha256: 1b59816d6715ad039e86e014ee2663693108f1ead03f5912996c4ad33200a300

Contents?: true

Size: 485 Bytes

Versions: 1

Compression:

Stored size: 485 Bytes

Contents

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

describe Mousetrap::Customer do
  subject { Mousetrap::Customer }
  
  describe '.all' do
    it 'gets customers resources' do
      subject.should_receive(:get_resources).with('customers')
      subject.all
    end
  end
  
  describe '.create' do
    it "creates a customer" do
      subject.should_receive(:post_resource).with('customers', 'new', 'some_hash')
      subject.create('some_hash')
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hashrocket-mousetrap-0.1.1 spec/mousetrap/customer_spec.rb