test/hyperclient_test.rb in hyperclient-0.0.3 vs test/hyperclient_test.rb in hyperclient-0.0.4

- old
+ new

@@ -20,10 +20,15 @@ before do api.entry_point 'http://my.api.org' end it 'initializes a Resource at the entry point' do - api.new.entry.url.must_equal 'http://my.api.org/' + api.new.entry.url.must_equal 'http://my.api.org' + end + + it 'also works with entry points that are not in the root' do + api.entry_point 'http://my.api.org/api' + api.new.entry.url.must_equal 'http://my.api.org/api' end it 'sets the Resource name' do api.new.name.must_equal 'Entry point' end \ No newline at end of file