Skip to content

Commit

Permalink
Updated cucumber steps to work on Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
nerakdon committed Oct 7, 2014
1 parent 0bb4005 commit 7344c84
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion features/step_definitions/social_tokenizer_steps.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
RSpec.configure do |config|
config.expect_with :rspec do |c|
c.syntax = [:should, :expect] # default, enables both `should` and `expect`
end
end

Given /^the String:$/ do |input|
@input = input.to_s
end
Expand All @@ -8,7 +14,7 @@

Then(/^the result should be a Hash with (\d+) key\-value pairs$/) do |num|
@output.should be_a Hash
@output.should have_at_least(num).items
@output.count.should be >= num
end

And(/^each of its keys should be a symbol denoting the type of social token$/) do
Expand Down

0 comments on commit 7344c84

Please sign in to comment.