Sha256: 506aedb538f3dbad304e2bbcb1958046a31b1b68dfca9ba50b589eba0d0f65d4

Contents?: true

Size: 461 Bytes

Versions: 39

Compression:

Stored size: 461 Bytes

Contents

require 'spec_helper'
require 'cucumber/formatter/duration'

module Cucumber
  module Formatter
    describe Duration do
      include Duration
      
      it "should format ms" do
        format_duration(0.002103).should == '0m0.002s'
      end

      it "should format m" do
        format_duration(61.002503).should == '1m1.003s'
      end

      it "should format h" do
        format_duration(3661.002503).should == '61m1.003s'
      end
    end
  end
end

Version data entries

39 entries across 37 versions & 9 rubygems

Version Path
candlepin-api-0.4.0 bundle/ruby/1.8/gems/cucumber-1.2.1/spec/cucumber/formatter/duration_spec.rb
candlepin-api-0.4.0 bundle/ruby/gems/cucumber-1.2.1/spec/cucumber/formatter/duration_spec.rb
candlepin-api-0.4.0 bundle/ruby/1.9.1/gems/cucumber-1.2.1/spec/cucumber/formatter/duration_spec.rb
librarian-puppet-0.9.9 vendor/gems/ruby/1.9.1/gems/cucumber-1.2.1/spec/cucumber/formatter/duration_spec.rb
librarian-puppet-0.9.8 vendor/gems/ruby/1.9.1/gems/cucumber-1.2.1/spec/cucumber/formatter/duration_spec.rb
librarian-puppet-0.9.4 vendor/gems/ruby/1.8/gems/cucumber-1.2.1/spec/cucumber/formatter/duration_spec.rb
casecumber-1.0.2.1 spec/cucumber/formatter/duration_spec.rb
casecumber-1.2.1.cb2 spec/cucumber/formatter/duration_spec.rb
librarian-puppet-0.9.3 vendor/gems/ruby/1.8/gems/cucumber-1.2.1/spec/cucumber/formatter/duration_spec.rb
cucumber-1.2.1 spec/cucumber/formatter/duration_spec.rb
resque-pool-0.3.0 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/spec/cucumber/formatter/duration_spec.rb
ftl-0.2.0 vendor/bundle/gems/cucumber-1.2.0/spec/cucumber/formatter/duration_spec.rb
cucumber-1.2.0 spec/cucumber/formatter/duration_spec.rb
frameworks-capybara-0.2.0.rc6 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/spec/cucumber/formatter/duration_spec.rb
frameworks-capybara-0.2.0.rc5 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/spec/cucumber/formatter/duration_spec.rb
frameworks-capybara-0.2.0.rc4 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/spec/cucumber/formatter/duration_spec.rb
frameworks-capybara-0.2.0.rc3 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/spec/cucumber/formatter/duration_spec.rb
frameworks-capybara-0.2.0.rc2 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/spec/cucumber/formatter/duration_spec.rb
resque-pool-0.3.0.beta.2 vendor/bundle/ruby/1.8/gems/cucumber-1.1.9/spec/cucumber/formatter/duration_spec.rb
radiant-1.0.0 ruby-debug/ruby/1.8/gems/cucumber-1.1.9/spec/cucumber/formatter/duration_spec.rb