Skip to content

Commit

Permalink
Sniff 0.11.x compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
erithmetic committed Oct 12, 2011
1 parent 9cf6306 commit e76a5fe
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
1 change: 1 addition & 0 deletions docs
Submodule docs added at 2453d6
5 changes: 2 additions & 3 deletions features/motorcycle_committees.feature
Expand Up @@ -2,10 +2,9 @@ Feature: Motorcycle Committee Calculations
The motorcycle model should generate correct committee calculations

Scenario Outline: Fuel consumed committee
Given a motorcycle emitter
And a characteristic "distance" of "<distance>"
Given a characteristic "distance" of "<distance>"
And a characteristic "fuel_efficiency" of "<fuel_efficiency>"
When the "fuel_consumed" committee is calculated
When the "fuel_consumed" committee reports
Then the conclusion of the committee should be "<fuel_consumption>"
Examples:
| distance | fuel_efficiency | fuel_consumption |
Expand Down
6 changes: 3 additions & 3 deletions features/motorcycle_emissions.feature
Expand Up @@ -2,9 +2,9 @@ Feature: Motorcycle Emissions Calculations
The motorcycle model should generate correct emission calculations

Scenario Outline: Standard Calculations for motorcycle
Given a motorcycle has "annual_distance_estimate" of "<distance>"
When emissions are calculated
Then the emission value should be within "0.1" kgs of "<emission>"
Given it has "annual_distance_estimate" of "<distance>"
When impacts are calculated
Then the amount of "carbon" should be within "0.1" kgs of "<emission>"
Examples:
| distance | emission |
| 1019 | 97.2 |
2 changes: 1 addition & 1 deletion features/support/motorcycle_record.rb
@@ -1,6 +1,6 @@
require 'motorcycle'

class MotorcycleRecord < ActiveRecord::Base
include Sniff::Emitter
include BrighterPlanet::Emitter
include BrighterPlanet::Motorcycle
end
4 changes: 2 additions & 2 deletions motorcycle.gemspec
Expand Up @@ -22,6 +22,6 @@ Gem::Specification.new do |s|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]

s.add_runtime_dependency 'emitter' unless ENV['LOCAL_EMITTER']
s.add_development_dependency 'sniff' unless ENV['LOCAL_SNIFF']
s.add_runtime_dependency 'emitter', '~>0.11.0' unless ENV['LOCAL_EMITTER']
s.add_development_dependency 'sniff', '~>0.11.0' unless ENV['LOCAL_SNIFF']
end

0 comments on commit e76a5fe

Please sign in to comment.