Sha256: 680ab2fbd8a754fbea06881c4267f741aa1995ad4c37c6c4fca61f43d0d7c749

Contents?: true

Size: 494 Bytes

Versions: 23

Compression:

Stored size: 494 Bytes

Contents

Then /^the total plays should be "([^\"]*)"$/ do |total|
  Sorenson::Services::Metric.total_plays.should == total.to_i
end

Then /^the storage used should be "([^\"]*)"$/ do |storage|
  Sorenson::Services::Metric.storage_used.should == storage.to_i
end

And /^I get all metrics$/ do
  @events = Sorenson::Services::Metric.all
end

Then /^the events list should contain an event with a day of "([^\"]*)"$/ do |day|
  @events.select {|event| event.date == Date.parse(day)}.should_not be_empty
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
360_services-0.0.3 features/step_definitions/manage_metrics_steps.rb
360_services-0.0.2 features/step_definitions/manage_metrics_steps.rb
360_services-0.0.1 features/step_definitions/manage_metrics_steps.rb