Skip to content

Commit d81a003

Browse files
committed
Add column spec
1 parent 7da6ee9 commit d81a003

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

spec/lib/hotsheet/sheet/column_spec.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@
1212
expect(column.editable?).to be true
1313
end
1414

15+
context "with valid config" do
16+
let(:config) { { editable: false, visible: false } }
17+
18+
it "does not raise an error" do
19+
expect(column.visible?).to be false
20+
expect(column.editable?).to be false
21+
end
22+
end
23+
1524
context "with invalid config" do
1625
let(:config) { { editable: "no" } }
1726

0 commit comments

Comments
 (0)