Sha256: ae8d77500fd216db7cd63baa88a5f4b69eddcd2c60cf0f9bcbd8c3a37169828f
Contents?: true
Size: 512 Bytes
Versions: 6
Compression:
Stored size: 512 Bytes
Contents
require 'spec_helper' describe 'Action View Extension' do let(:action_view) { ActionView::Base.new } let(:objects) do 3.times.map { FactoryGirl.build(:dummy_model) } end it 'includes to actionview' do action_view.should respond_to :simple_table_for end it '.simple_table_for renders a table' do table = action_view.simple_table_for(objects) do |table| table.column :name, :email end doc = Nokogiri::HTML(table) expect(doc.at_xpath('//table')).to be_present end end
Version data entries
6 entries across 6 versions & 1 rubygems