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.4.24 spec/unit/spark_api/models/newsfeed_spec.rb
spark_api-1.4.23 spec/unit/spark_api/models/newsfeed_spec.rb
spark_api-1.4.22 spec/unit/spark_api/models/newsfeed_spec.rb
spark_api-1.4.21 spec/unit/spark_api/models/newsfeed_spec.rb
spark_api-1.4.20 spec/unit/spark_api/models/newsfeed_spec.rb
spark_api-1.4.19 spec/unit/spark_api/models/newsfeed_spec.rb
spark_api-1.4.18 spec/unit/spark_api/models/newsfeed_spec.rb
spark_api-1.4.17 spec/unit/spark_api/models/newsfeed_spec.rb
spark_api-1.4.16 spec/unit/spark_api/models/newsfeed_spec.rb
spark_api-1.4.15 spec/unit/spark_api/models/newsfeed_spec.rb
spark_api-1.4.14 spec/unit/spark_api/models/newsfeed_spec.rb
spark_api-1.4.13 spec/unit/spark_api/models/newsfeed_spec.rb
spark_api-1.4.12 spec/unit/spark_api/models/newsfeed_spec.rb
spark_api-1.4.11 spec/unit/spark_api/models/newsfeed_spec.rb
spark_api-1.4.10 spec/unit/spark_api/models/newsfeed_spec.rb