Commit a7aed5a1 by Clinton Blackburn

Updated i18n spec

Using single quotes
parent 28447136
require "spec_helper"
require 'spec_helper'
describe "i18n" do
describe 'i18n' do
before(:each) { set_api_key_header }
it "should respect the Accept-Language header" do
put "/api/v1/comments/does_not_exist/votes", {}, {"HTTP_ACCEPT_LANGUAGE" => "x-test"}
it 'should respect the Accept-Language header' do
put '/api/v1/comments/does_not_exist/votes', {}, {'HTTP_ACCEPT_LANGUAGE' => 'x-test'}
last_response.status.should == 400
parse(last_response.body).first.should == "##x-test## requested object not found"
parse(last_response.body).first.should == '##x-test## requested object not found'
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment