Sha256: 622783aff40409e0e0d3df85085cdefba699dbdf89e0bb781d873332104e7c58
Contents?: true
Size: 474 Bytes
Versions: 3
Compression:
Stored size: 474 Bytes
Contents
require 'rubygems' gem 'shoulda' require 'test/unit' require 'shoulda' require 'sitra_client/sitra_query' class SitraQueryTest < Test::Unit::TestCase should 'populate query with parameters' do query = SitraQuery.new('dummy_key', 'dummy_identifier', {:first_key => 'first_value', :second_key => 'second_value'}) assert_equal '{"apiKey":"dummy_key","projetId":"dummy_identifier","first_key":"first_value","second_key":"second_value"}', query.to_params end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sitra_client-0.3.5 | test/sitra_client/sitra_query_test.rb |
sitra_client-0.3.4 | test/sitra_client/sitra_query_test.rb |
sitra_client-0.3.3 | test/sitra_client/sitra_query_test.rb |