spec/localeapp/routes_spec.rb in localeapp-0.3.1 vs spec/localeapp/routes_spec.rb in localeapp-0.3.2

- old
+ new

@@ -39,13 +39,13 @@ end end end describe "#translations_url" do - it "it extends the project_url and defaults to json" do + it "it extends the project_url and defaults to yml" do with_configuration(@config) do - @routes.translations_url.should == "https://test.host/v1/projects/API_KEY/translations.json" + @routes.translations_url.should == "https://test.host/v1/projects/API_KEY/translations.yml" end end it "adds query parameters on to the url" do with_configuration(@config) do @@ -55,10 +55,10 @@ end end it "can be changed to another content type" do with_configuration(@config) do - @routes.translations_url(:format => :yml).should == 'https://test.host/v1/projects/API_KEY/translations.yml' + @routes.translations_url(:format => :json).should == 'https://test.host/v1/projects/API_KEY/translations.json' end end end describe "#translations_endpoint(options = {})" do