Sha256: db7899cf99868a3752f54ff28dc9d78af6accde2dba50a4ea3ec64bcfb28c862
Contents?: true
Size: 661 Bytes
Versions: 5
Compression:
Stored size: 661 Bytes
Contents
require 'spec_helper' describe Wordnik::Endpoint do before(:each) do VCR.use_cassette('words', :record => :new_episodes) do @response = Typhoeus::Request.get("http://api.wordnik.com/v4/word.json") end @resource = Wordnik::Resource.new(:name => "word", :raw_data => JSON.parse(@response.body)) @endpoint = @resource.endpoints.first end describe "initialization" do it "successfully initializes" do @endpoint.path.should == "/word.{format}/{word}" end it "sets operations" do @endpoint.operations.class.should == Array @endpoint.operations.first.class.should == Wordnik::Operation end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
wordnik-0.4.5 | spec/endpoint_spec.rb |
wordnik-0.4.4 | spec/endpoint_spec.rb |
wordnik-0.4.3 | spec/endpoint_spec.rb |
wordnik-0.4.2 | spec/endpoint_spec.rb |
wordnik-0.4.1 | spec/endpoint_spec.rb |