spec/unit/cleanroom_spec.rb in omnibus-5.5.0 vs spec/unit/cleanroom_spec.rb in omnibus-5.6.0
- old
+ new
@@ -15,29 +15,29 @@
end
end
let(:instance) { klass.new }
- describe '#evaluate' do
+ describe "#evaluate" do
it "exposes public methods" do
- expect {
+ expect do
instance.evaluate("exposed_method")
- }.to_not raise_error
+ end.to_not raise_error
end
it "calls exposed methods on the instance" do
instance.evaluate("exposed_method")
expect(instance.instance_variable_get(:@called)).to be_truthy
end
it "does not expose unexposed methods" do
- expect {
+ expect do
instance.evaluate("unexposed_method")
- }.to raise_error(NameError)
+ end.to raise_error(NameError)
end
end
- describe '#evaluate_file' do
+ describe "#evaluate_file" do
let(:contents) do
<<-EOH.gsub(/^ {10}/, "")
exposed_method
EOH
end