spec/unit/a9n_spec.rb in a9n-0.4.5 vs spec/unit/a9n_spec.rb in a9n-0.4.6
- old
+ new
@@ -1,8 +1,6 @@
-require "spec_helper"
-
-describe A9n do
+RSpec.describe A9n do
subject { described_class }
before { clean_singleton(subject) }
after { clean_singleton(subject) }
describe ".env" do
@@ -175,10 +173,10 @@
describe ".load" do
before do
expect(described_class).to receive(:env).exactly(2).times.and_return("dev")
subject.root = "/apps/test_app"
files.each do |f, cfg|
- expect(A9n::Loader).to receive(:new).with(f, "dev").and_return(double(get: cfg))
+ expect(A9n::Loader).to receive(:new).with(f, kind_of(A9n::Scope), "dev").and_return(double(get: cfg))
end
end
context "when no files given" do
let(:files) do