Sha256: 039b898702213ce3d0d3e0a4883e22e8f793bb09ffb2a7fafb91532fe0481d16

Contents?: true

Size: 521 Bytes

Versions: 20

Compression:

Stored size: 521 Bytes

Contents

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

describe Highrise::Task do

  before(:each) do
    @task = Highrise::Task.new
  end
  
  it "should be instance of Highrise::Base" do
    @task.kind_of?(Highrise::Base).should be_true
  end
  
  describe ".complete!" do
    
    it "should delegate to load_attributes_from_response" do
      @task.should_receive(:load_attributes_from_response).with("post")
      @task.should_receive(:post).with(:complete).and_return("post")
      @task.complete!
    end

  end

end

Version data entries

20 entries across 20 versions & 4 rubygems

Version Path
kmayer-highrise-0.11.0 spec/highrise/task_spec.rb
kmayer-highrise-0.11.1 spec/highrise/task_spec.rb
kmayer-highrise-0.12.0 spec/highrise/task_spec.rb
kmayer-highrise-0.13.0 spec/highrise/task_spec.rb
kmayer-highrise-0.8.0 spec/highrise/task_spec.rb
kmayer-highrise-0.8.1 spec/highrise/task_spec.rb
kmayer-highrise-0.9.0 spec/highrise/task_spec.rb
kmayer-highrise-0.9.1 spec/highrise/task_spec.rb
kmayer-highrise-0.9.2 spec/highrise/task_spec.rb
kmayer-highrise-1.0.1 spec/highrise/task_spec.rb
rogerio-augusto-highrise-2.0.4 spec/highrise/task_spec.rb
rogerio-augusto-highrise-2.0.3 spec/highrise/task_spec.rb
rogerio-augusto-highrise-2.0.2 spec/highrise/task_spec.rb
highrise-2.0.1 spec/highrise/task_spec.rb
highrise-2.0.0 spec/highrise/task_spec.rb
highrise-1.2.0 spec/highrise/task_spec.rb
soleone-highrise-0.13.3 spec/highrise/task_spec.rb
highrise-1.0.4 spec/highrise/task_spec.rb
highrise-1.0.3 spec/highrise/task_spec.rb
highrise-1.0.2 spec/highrise/task_spec.rb