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-1.1.3 features/step_definitions/manage_metrics_steps.rb
360_services-1.1.2 features/step_definitions/manage_metrics_steps.rb
360_services-1.1.1 features/step_definitions/manage_metrics_steps.rb
360_services-1.0.10 features/step_definitions/manage_metrics_steps.rb
360_services-1.1.0 features/step_definitions/manage_metrics_steps.rb
360_services-1.0.9 features/step_definitions/manage_metrics_steps.rb
360_services-1.0.8 features/step_definitions/manage_metrics_steps.rb
360_services-1.0.7 features/step_definitions/manage_metrics_steps.rb
360_services-1.0.6 features/step_definitions/manage_metrics_steps.rb
360_services-1.0.5 features/step_definitions/manage_metrics_steps.rb
360_services-1.0.4 features/step_definitions/manage_metrics_steps.rb
360_services-1.0.3 features/step_definitions/manage_metrics_steps.rb
360_services-1.0.2 features/step_definitions/manage_metrics_steps.rb
360_services-0.0.8 features/step_definitions/manage_metrics_steps.rb
360_services-0.0.7 features/step_definitions/manage_metrics_steps.rb
360_services-0.0.6 features/step_definitions/manage_metrics_steps.rb
360_services-0.0.5 features/step_definitions/manage_metrics_steps.rb
360_services-1.0.1 features/step_definitions/manage_metrics_steps.rb
360_services-1.0.0 features/step_definitions/manage_metrics_steps.rb
360_services-0.0.4 features/step_definitions/manage_metrics_steps.rb