Sha256: 6eef4c7600f6ca67bb3b9e69afbdcd9d7c5274b63b86fc67dec2fa27a7307294

Contents?: true

Size: 380 Bytes

Versions: 11

Compression:

Stored size: 380 Bytes

Contents

require 'spec_helper'
require 'tronprint/rails/tronprint_helper'

describe TronprintHelper do
  let :helper do
    c = Class.new
    c.send :include, TronprintHelper
    c.new
  end

  describe '#total_footprint' do
    it 'should return the total footprint' do
      helper.stub!(:emission_estimate).and_return 89.4
      helper.total_footprint.should == 89.4
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
tronprint-0.0.16 spec/tronprint/rails/tronprint_helper_spec.rb
tronprint-0.0.15 spec/tronprint/rails/tronprint_helper_spec.rb
tronprint-0.0.14 spec/tronprint/rails/tronprint_helper_spec.rb
tronprint-0.0.13 spec/tronprint/rails/tronprint_helper_spec.rb
tronprint-0.0.11 spec/tronprint/rails/tronprint_helper_spec.rb
tronprint-0.0.10 spec/tronprint/rails/tronprint_helper_spec.rb
tronprint-0.0.8 spec/tronprint/rails/tronprint_helper_spec.rb
tronprint-0.0.7 spec/tronprint/rails/tronprint_helper_spec.rb
tronprint-0.0.6 spec/tronprint/rails/tronprint_helper_spec.rb
tronprint-0.0.4 spec/tronprint/rails/tronprint_helper_spec.rb
tronprint-0.0.3 spec/tronprint/rails/tronprint_helper_spec.rb