spec/certmeister/response_spec.rb in certmeister-0.4.1 vs spec/certmeister/response_spec.rb in certmeister-1.0.0
- old
+ new
@@ -21,14 +21,14 @@
it "doesn't provide the PEM-encoded X509 certificate as a string" do
expect(subject.pem).to be_nil
end
it "offers appropriate boolean flags" do
- expect(subject.hit?).to be_false
- expect(subject.miss?).to be_false
- expect(subject.denied?).to be_false
- expect(subject.error?).to be_true
+ expect(subject.hit?).to be false
+ expect(subject.miss?).to be false
+ expect(subject.denied?).to be false
+ expect(subject.error?).to be true
end
end
describe "on denial" do
@@ -42,14 +42,14 @@
it "doesn't provide the PEM-encoded X509 certificate as a string" do
expect(subject.pem).to be_nil
end
it "offers appropriate boolean flags" do
- expect(subject.hit?).to be_false
- expect(subject.miss?).to be_false
- expect(subject.denied?).to be_true
- expect(subject.error?).to be_false
+ expect(subject.hit?).to be false
+ expect(subject.miss?).to be false
+ expect(subject.denied?).to be true
+ expect(subject.error?).to be false
end
end
describe "on miss (i.e. not found)" do
@@ -63,14 +63,14 @@
it "doesn't provide the PEM-encoded X509 certificate as a string" do
expect(subject.pem).to be_nil
end
it "offers appropriate boolean flags" do
- expect(subject.hit?).to be_false
- expect(subject.miss?).to be_true
- expect(subject.denied?).to be_false
- expect(subject.error?).to be_false
+ expect(subject.hit?).to be false
+ expect(subject.miss?).to be true
+ expect(subject.denied?).to be false
+ expect(subject.error?).to be false
end
end
describe "on hit (success)" do
@@ -85,13 +85,13 @@
# some hits, like the one for a remove(), don't have a pem, returning :none
expect(subject.pem).to eql pem
end
it "offers appropriate boolean flags" do
- expect(subject.hit?).to be_true
- expect(subject.miss?).to be_false
- expect(subject.denied?).to be_false
- expect(subject.error?).to be_false
+ expect(subject.hit?).to be true
+ expect(subject.miss?).to be false
+ expect(subject.denied?).to be false
+ expect(subject.error?).to be false
end
end
end