Sha256: d854cf6c49532a8a9ae4b9ee397acf7521b0a146ea181a19dff13a126832d0d6
Contents?: true
Size: 396 Bytes
Versions: 2
Compression:
Stored size: 396 Bytes
Contents
Before('@couchdb_needed') do end When /^I persist a Trend "([^\"]*)"$/ do |keyphrase| @keyphrase = keyphrase trend = Trend.new("name" => @keyphrase) trend.save end Then /^I should be able to view that Trend$/ do trends = Trend.by_name :key => @keyphrase trend = trends[0] trend['name'].should == @keyphrase trends.length.should > 0 end After('@couchdb_needed') do delete_db end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sshingler-jkl-0.0.5 | features/step_definitions/persistence_steps.rb |
sshingler-jkl-0.0.6 | features/step_definitions/persistence_steps.rb |