Sha256: bee14119f42890d62584bc838fac281782aa21ceb40b2fee47419b9ce1c12307
Contents?: true
Size: 673 Bytes
Versions: 12
Compression:
Stored size: 673 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper' describe Response do before :each do @response = Response.new @object = { :test => 'test' } end context 'setting' do it 'should store an object' do @response.result.should == {} @response.result = @object @response.result.should_not be_nil end it 'should return an object' do @response.result_json = @object.to_json @response.result.should_not be_nil @response.result == @object end it 'should set and return the same object' do @response.result = @object @response.result.should == @object end end end
Version data entries
12 entries across 12 versions & 1 rubygems