Sha256: 48abe965e047b1cc1775dec81118c1ff29712db89914e9c38784a78d8992aab7

Contents?: true

Size: 384 Bytes

Versions: 3

Compression:

Stored size: 384 Bytes

Contents

require 'spec_helper'

describe ViewModels::Helpers::View do
  
  class TestClass < ActionView::Base; end
  
  describe "including it" do
    it "should include all the view helpers" do
      in_the TestClass do
        include ViewModels::Helpers::View
      end
      
      TestClass.should include(ActionView::Helpers)
      TestClass.should include(ERB::Util)
    end
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
view_models-4.0.1 spec/lib/view_models/helpers/view_spec.rb
view_models-3.0.1 spec/lib/view_models/helpers/view_spec.rb
view_models-3.0.0 spec/lib/view_models/helpers/view_spec.rb