Sha256: 7dbb86216132f4ac32b209004bcbb63c3c8419234da69c2784bc620a6d99b33a

Contents?: true

Size: 510 Bytes

Versions: 35

Compression:

Stored size: 510 Bytes

Contents

require './spec/spec_helper'


describe Newsfeed do

  before do
    stub_auth_request
  end

  describe "update!" do
    it "should update the attributes" do
      stub_api_get("/newsfeeds/20130625195235039712000000", "newsfeeds/get.json")
      stub_api_put("/newsfeeds/20130625195235039712000000", {:Active => false}, "newsfeeds/inactive.json")
      @newsfeed = Newsfeed.find("20130625195235039712000000")
      @newsfeed.update!(:Active => false)
      expect(@newsfeed.Active) == false
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
spark_api-1.6.3 spec/unit/spark_api/models/newsfeed_spec.rb
spark_api-1.6.2 spec/unit/spark_api/models/newsfeed_spec.rb
spark_api-1.6.1 spec/unit/spark_api/models/newsfeed_spec.rb
spark_api-1.5.7 spec/unit/spark_api/models/newsfeed_spec.rb
spark_api-1.6.0 spec/unit/spark_api/models/newsfeed_spec.rb
spark_api-1.5.6 spec/unit/spark_api/models/newsfeed_spec.rb
spark_api-1.5.5 spec/unit/spark_api/models/newsfeed_spec.rb
spark_api-1.5.4 spec/unit/spark_api/models/newsfeed_spec.rb
spark_api-1.5.3 spec/unit/spark_api/models/newsfeed_spec.rb
spark_api-1.5.2 spec/unit/spark_api/models/newsfeed_spec.rb
spark_api-1.5.1 spec/unit/spark_api/models/newsfeed_spec.rb
spark_api-1.5.0 spec/unit/spark_api/models/newsfeed_spec.rb
spark_api-1.4.34 spec/unit/spark_api/models/newsfeed_spec.rb
spark_api-1.4.32 spec/unit/spark_api/models/newsfeed_spec.rb
spark_api-1.4.31 spec/unit/spark_api/models/newsfeed_spec.rb
spark_api-1.4.29 spec/unit/spark_api/models/newsfeed_spec.rb
spark_api-1.4.28 spec/unit/spark_api/models/newsfeed_spec.rb
spark_api-1.4.27 spec/unit/spark_api/models/newsfeed_spec.rb
spark_api-1.4.26 spec/unit/spark_api/models/newsfeed_spec.rb
spark_api-1.4.25 spec/unit/spark_api/models/newsfeed_spec.rb