Sha256: 836cf4cf2209a340d111e749d729bb169a7a575f414ff12696c59f1e1b1cf4a2
Contents?: true
Size: 740 Bytes
Versions: 1
Compression:
Stored size: 740 Bytes
Contents
require 'spec_helper' describe '.projects' do it 'should fetch all projects' do stub = stub_get('/projects/', 'projects.json') client = MockGerry.new projects = client.projects expect(stub).to have_been_requested expect(projects['awesome']['description']).to eq('Awesome project') expect(projects['clean']['description']).to eq('Clean code!') end it 'should fetch a project' do stub = stub_get('/projects/awesome', 'projects.json') client = MockGerry.new projects = client.find_project('awesome') expect(stub).to have_been_requested expect(projects['awesome']['description']).to eq('Awesome project') end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gerry-0.0.3 | spec/projects_spec.rb |