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

Version Path
radiant-forms-extension-3.2.8 spec/models/response_spec.rb
radiant-forms-extension-3.3.2 spec/models/response_spec.rb
radiant-forms-extension-3.3.1 spec/models/response_spec.rb
radiant-forms-extension-3.3.0 spec/models/response_spec.rb
radiant-forms-extension-3.2.7 spec/models/response_spec.rb
radiant-forms-extension-3.2.6 spec/models/response_spec.rb
radiant-forms-extension-3.2.5 spec/models/response_spec.rb
radiant-forms-extension-3.2.4 spec/models/response_spec.rb
radiant-forms-extension-3.2.2 spec/models/response_spec.rb
radiant-forms-extension-3.2.1 spec/models/response_spec.rb
radiant-forms-extension-3.2.0.beta.1 spec/models/response_spec.rb
radiant-forms-extension-3.1.1 spec/models/response_spec.rb