spec/unit/scope_spec.rb in a9n-0.6.2 vs spec/unit/scope_spec.rb in a9n-0.7.0
- old
+ new
@@ -1,26 +1,26 @@
RSpec.describe A9n::Scope do
subject { described_class.new(name) }
- describe "#name" do
- let(:name) { "configuration" }
+ describe '#name' do
+ let(:name) { 'configuration' }
it { expect(subject.name).to eq(:configuration) }
end
- describe "#main?" do
- context "when name is configuration" do
- let(:name) { "configuration" }
+ describe '#main?' do
+ context 'when name is configuration' do
+ let(:name) { 'configuration' }
it { expect(subject).to be_root }
end
- context "when name is other than configuration" do
- let(:name) { "mandrill" }
+ context 'when name is other than configuration' do
+ let(:name) { 'mandrill' }
it { expect(subject).not_to be_root }
end
end
- describe ".form_file_path" do
- let(:path) { "config/a9n/mandrill.yml.example" }
+ describe '.form_file_path' do
+ let(:path) { 'config/a9n/mandrill.yml.example' }
subject { described_class.form_file_path(path) }
it { expect(subject.name).to eq(:mandrill) }
end
end