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