Sha256: a7763c3c1f7606d6d4df7ea6c7a11ac17fb68d04d3651c1c7a7268163f0d07b6
Contents?: true
Size: 778 Bytes
Versions: 1
Compression:
Stored size: 778 Bytes
Contents
require 'spec_helper' describe PGit::Pivotal::Request::Query do describe '#new(scope: :current_backlog)' do it 'should generate the right query string ' do query = PGit::Pivotal::Request::Query.new expect("#{query}").to eq '' end end describe '#new(scope: :current_backlog)' do it 'should generate the right query string ' do query = PGit::Pivotal::Request::Query.new(scope: :current_backlog) expect("#{query}").to eq '?scope=current_backlog' end end describe '#new(scope: :current_backlog, offset: 1)' do it 'should generate the right query string ' do query = PGit::Pivotal::Request::Query.new(scope: :current_backlog, offset: 1) expect("#{query}").to eq '?scope=current_backlog&offset=1' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pgit-1.0.0 | spec/pgit/pivotal/request/query_spec.rb |