Sha256: b391ad2498f714bd0cd32d9bfcbb032df2f307cc643ed089cda5ffc1190e294f

Contents?: true

Size: 351 Bytes

Versions: 3

Compression:

Stored size: 351 Bytes

Contents

require 'google_timezone/result'

describe GoogleTimezone::Result do
  it 'should be success' do
    result = GoogleTimezone::Result.new({ 'status' => 'OK' })
    expect(result).to be_success
  end

  it 'should not be succsess' do
    result = GoogleTimezone::Result.new({ 'status' => 'ZERO_RESULTS' })
    expect(result).to_not be_success
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
google_timezone-0.0.6 spec/google_timezone_result_spec.rb
google_timezone-0.0.5 spec/google_timezone_result_spec.rb
google_timezone-0.0.4 spec/google_timezone_result_spec.rb