spec/lib/presenter_spec.rb in table_cloth-0.4.0 vs spec/lib/presenter_spec.rb in table_cloth-0.4.1
- old
+ new
@@ -27,22 +27,9 @@
end
specify "are not returned" do
expect(subject).to have(0).columns
end
-
- specify "name is not returned" do
- expect(subject.column_names).not_to include "email"
- end
- end
- end
-
- context ".column_names" do
- let(:table_instance) { dummy_table.new(objects, view_context) }
- before(:each) { table_instance.stub admin?: false, awesome?: true }
-
- it 'returns all names' do
- expect(subject.column_names).to eq ["Id", "Name", "Email"]
end
end
it 'returns all values for a row' do
expect(subject.row_values(dummy_model)).to eq [dummy_model.id, dummy_model.name, dummy_model.email]
\ No newline at end of file