-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5777ce4
commit 3a674f9
Showing
6 changed files
with
2 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
PATH | ||
remote: . | ||
specs: | ||
resol (0.9.0) | ||
resol (1.0.0) | ||
dry-initializer (~> 3.1) | ||
smart_initializer (~> 0.7) | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
module Resol | ||
VERSION = "0.9.0" | ||
VERSION = "1.0.0" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,4 @@ | ||
# frozen_string_literal: true | ||
|
||
RSpec.describe Resol::Configuration do | ||
let(:cfg_values) { described_class.instance_variable_get(:@values) } | ||
|
||
it "properly configures" do | ||
expect(described_class.return_engine).to eq(described_class::DEFAULTS[:return_engine]) | ||
expect(described_class.smart_config).to eq(SmartCore::Initializer::Configuration.config) | ||
|
||
described_class.return_engine = "kek" | ||
|
||
expect(described_class.return_engine).to eq("kek") | ||
expect(described_class.to_h.equal?(cfg_values)).to eq(false) | ||
end | ||
|
||
context "when undefined method is called" do | ||
specify do | ||
expect { described_class.kekpek }.to raise_error(NoMethodError) | ||
end | ||
end | ||
|
||
context "when smartcore not loaded" do | ||
before { allow(described_class).to receive(:smart_not_loaded?).and_return(true) } | ||
|
||
specify { expect(described_class.smart_config).to eq(nil) } | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters