Browse files

Remove parentheses for consistency and greater readability

  • Loading branch information...
1 parent 144a0d0 commit 88fd6a75337a5c487ec8bd3b3de304bc5c308a41 @sferik committed Nov 10, 2012
Showing with 14 additions and 12 deletions.
  1. +2 −0 Gemfile
  2. +12 −12 spec/search_spec.rb
View
2 Gemfile
@@ -4,4 +4,6 @@ platforms :jruby do
gem 'jruby-openssl', '~> 0.7'
end
+gem 'rspec-core', github: 'rspec/rspec-core'
+
gemspec
View
24 spec/search_spec.rb
@@ -683,12 +683,12 @@
end
it "should not decode urls without given the explicit option" do
@search.all("twitter")
- expect($stdout.string).to include("http://t.co/fwZfnEaA")
+ expect($stdout.string).to include "http://t.co/fwZfnEaA"
end
it "should decode the urls correctly" do
@search.options = @search.options.merge("decode_urls" => true)
@search.all("twitter")
- expect($stdout.string).to include("http://semver.org")
+ expect($stdout.string).to include "http://semver.org"
end
end
@@ -749,12 +749,12 @@
end
it "should not decode urls without given the explicit option" do
@search.favorites("twitter")
- expect($stdout.string).to include("https://t.co/I17jUTu2")
+ expect($stdout.string).to include "https://t.co/I17jUTu2"
end
it "should decode the urls correctly" do
@search.options = @search.options.merge("decode_urls" => true)
@search.favorites("twitter")
- expect($stdout.string).to include("https://twitter.com/sferik/status/243988000076337152")
+ expect($stdout.string).to include "https://twitter.com/sferik/status/243988000076337152"
end
end
context "Twitter is down" do
@@ -870,12 +870,12 @@
end
it "should not decode urls without given the explicit option" do
@search.mentions("twitter")
- expect($stdout.string).to include("https://t.co/I17jUTu2")
+ expect($stdout.string).to include "https://t.co/I17jUTu2"
end
it "should decode the urls correctly" do
@search.options = @search.options.merge("decode_urls" => true)
@search.mentions("twitter")
- expect($stdout.string).to include("https://twitter.com/sferik/status/243988000076337152")
+ expect($stdout.string).to include "https://twitter.com/sferik/status/243988000076337152"
end
end
context "Twitter is down" do
@@ -944,12 +944,12 @@
end
it "should not decode urls without given the explicit option" do
@search.list("presidents", "twitter")
- expect($stdout.string).to include("https://t.co/I17jUTu2")
+ expect($stdout.string).to include "https://t.co/I17jUTu2"
end
it "should decode the urls correctly" do
@search.options = @search.options.merge("decode_urls" => true)
@search.list("presidents", "twitter")
- expect($stdout.string).to include("https://dev.twitter.com/docs/api/post/direct_messages/destroy")
+ expect($stdout.string).to include "https://dev.twitter.com/docs/api/post/direct_messages/destroy"
end
end
context "with a user passed" do
@@ -1030,12 +1030,12 @@
end
it "should not decode urls without given the explicit option" do
@search.retweets("mosaic")
- expect($stdout.string).to include("http://t.co/A8013C9k")
+ expect($stdout.string).to include "http://t.co/A8013C9k"
end
it "should decode the urls correctly" do
@search.options = @search.options.merge("decode_urls" => true)
@search.retweets("mosaic")
- expect($stdout.string).to include("http://heymosaic.com/i/1Z8ssK")
+ expect($stdout.string).to include "http://heymosaic.com/i/1Z8ssK"
end
end
context "Twitter is down" do
@@ -1167,12 +1167,12 @@
end
it "should not decode urls without given the explicit option" do
@search.timeline("twitter")
- expect($stdout.string).to include("https://t.co/I17jUTu2")
+ expect($stdout.string).to include "https://t.co/I17jUTu2"
end
it "should decode the urls correctly" do
@search.options = @search.options.merge("decode_urls" => true)
@search.timeline("twitter")
- expect($stdout.string).to include("https://dev.twitter.com/docs/api/post/direct_messages/destroy")
+ expect($stdout.string).to include "https://dev.twitter.com/docs/api/post/direct_messages/destroy"
end
end
context "Twitter is down" do

0 comments on commit 88fd6a7

Please sign in to comment.