summaryrefslogtreecommitdiff
path: root/spec/hashie_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/hashie_spec.rb')
-rw-r--r--spec/hashie_spec.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/hashie_spec.rb b/spec/hashie_spec.rb
new file mode 100644
index 0000000..bc999b9
--- /dev/null
+++ b/spec/hashie_spec.rb
@@ -0,0 +1,13 @@
+require 'spec_helper'
+
+RSpec.describe Hashie do
+ describe '.logger' do
+ shared_context 'with a logger' do
+ it 'is available via an accessor' do
+ Hashie.logger.info('Fee fi fo fum')
+
+ expect(logger_output).to match('Fee fi fo fum')
+ end
+ end
+ end
+end