Sha256: 2cb8a493df07d956b58ac6ac9e16f8ff2225cd6b7363eea22276d17be97b8649

Contents?: true

Size: 436 Bytes

Versions: 14

Compression:

Stored size: 436 Bytes

Contents

require 'spec_helper'

describe WhowishWordController do
  it "adds a word correctly" do
    
    word_id = "test"
    content = "Hello"
    
    post :change_word, {
                          :word_id => word_id,
                          :content => content
                        }
                        
    body = expect_json_response    
    body['ok'].should be_true
    
    I18n.t(word_id.to_sym).should == content
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
whowish_word-0.6.5 rails/spec/controllers/whowish_word_controller_spec.rb
whowish_word-0.6.4 rails/spec/controllers/whowish_word_controller_spec.rb
whowish_word-0.6.3 rails/spec/controllers/whowish_word_controller_spec.rb
whowish_word-0.6.2 rails/spec/controllers/whowish_word_controller_spec.rb
whowish_word-0.6.2gem rails/spec/controllers/whowish_word_controller_spec.rb
whowish_word-0.6.1 rails/spec/controllers/whowish_word_controller_spec.rb
whowish_word-0.6.0 rails/spec/controllers/whowish_word_controller_spec.rb
whowish_word-0.5.5 rails/spec/controllers/whowish_word_controller_spec.rb
whowish_word-0.5.4 rails/spec/controllers/whowish_word_controller_spec.rb
whowish_word-0.5.3 rails/spec/controllers/whowish_word_controller_spec.rb
whowish_word-0.5.2 rails/spec/controllers/whowish_word_controller_spec.rb
whowish_word-0.5.1 rails/spec/controllers/whowish_word_controller_spec.rb
whowish_word-0.5.0 rails/spec/controllers/whowish_word_controller_spec.rb
whowish_word-0.4.0 rails/spec/controllers/whowish_word_controller_spec.rb