Permalink
Browse files

Change spec logic for columns accepting options.

  • Loading branch information...
1 parent 80d50d2 commit 8def8a74007e6ecf5892cc68547890e0adb8bf28 @bobbytables committed Dec 17, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 spec/lib/base_spec.rb
View
@@ -16,7 +16,8 @@
end
it 'column accepts options' do
- expect { subject.column :n, {option: 'value'} }.not_to raise_error
+ subject.column :name, option: "value"
+ expect(subject.columns[:name][:options][:option]).to eq("value")
end
it '.columns returns all columns' do

0 comments on commit 8def8a7

Please sign in to comment.