Sha256: dcb547cf488f05a8b6688fba67d2014a1eb79abce4b29957225e6e5055f256e6
Contents?: true
Size: 699 Bytes
Versions: 13
Compression:
Stored size: 699 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe NSISam::Response do let(:response) do response = NSISam::Response.new('key' => 'key value', 'checksum' => 'checksum value', 'data' => 'data value', 'deleted' => true) end it 'retrieves response data as methods' do response.key.should == 'key value' response.checksum.should == 'checksum value' response.data.should == 'data value' end it 'retrieves deleted as boolean method' do response.should be_deleted NSISam::Response.new('deleted' => false).should_not be_deleted end end
Version data entries
13 entries across 13 versions & 1 rubygems