spec/unit/exposure_spec.rb in dry-view-0.2.2 vs spec/unit/exposure_spec.rb in dry-view-0.3.0
- old
+ new
@@ -31,16 +31,16 @@
it "allows a nil object" do
expect(described_class.new(:hello).object).to be_nil
end
end
- describe "#to_view" do
- it "is true by default" do
- expect(exposure.to_view).to be true
+ describe "#private?" do
+ it "is false by default" do
+ expect(exposure).not_to be_private
end
- it "can be set to false on initialization" do
- expect(described_class.new(:hello, to_view: false).to_view).to be false
+ it "can be set on initialization" do
+ expect(described_class.new(:hello, private: true)).to be_private
end
end
end
describe "#bind" do