Sha256: 26d57eced8fb38c5970921e9b3281f1b13dc13aff88e7951ba241c54bc76b073
Contents?: true
Size: 555 Bytes
Versions: 5
Compression:
Stored size: 555 Bytes
Contents
require 'spec_helper' describe 'Artisan' do it 'should raise UnknownArtisanTypeError if given an unknown artisan' do lambda { Covetous::Data::Artisan.new("assassin") }.must_raise UnknownArtisanTypeError end describe 'given a correct artisan type' do before do VCR.use_cassette('artisan_data') do @artisan_info = Covetous::Data::Artisan.new 'jeweler' end end after do VCR.eject_cassette end it 'should get the correct response' do @artisan_info.name.must_equal 'Jeweler' end end end
Version data entries
5 entries across 5 versions & 1 rubygems