Sha256: 62a45e41fa77656dab28da126e432bd722fcc19e6cf9dbc944950f4decdbc668

Contents?: true

Size: 757 Bytes

Versions: 5

Compression:

Stored size: 757 Bytes

Contents

# describe ExpressTranslate::OptionsController do
#
#   describe "Get index" do
#     it "returns a list of packages" do
#       get 'index'
#       response.should be_success
#     end
#
#     it "returns Ruby comment only if query search string is Ruby" do
#       get 'index', q: 'ruby'
#       response.should be_success
#
#       comments = json(response.body)
#       contents = comments.collect{|c| c[:content]}
#       contents.should include("Ruby")
#       contents.should_not include("Rails")
#     end
#
#     it "returns a comment by its id" do
#       get 'show', id: @comment_a.id
#       response.should be_success
#
#       comment = json(response.body)
#       comment[:content].should == @comment_a.content
#     end
#
#   end
#
# end
#
#

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
express_translate-1.0.3 spec/controllers/options_controller_spec.rb
express_translate-1.0.2 spec/controllers/options_controller_spec.rb
express_translate-1.0.1 spec/controllers/options_controller_spec.rb
express_translate-1.0 spec/controllers/options_controller_spec.rb
express_translate-1.0.0.0 spec/controllers/options_controller_spec.rb