1
0
Fork 0
mirror of https://github.com/paper-trail-gem/paper_trail.git synced 2022-11-09 11:33:19 -05:00
paper-trail-gem--paper_trail/spec/paper_trail/config_spec.rb

17 lines
379 B
Ruby

require "rails_helper"
module PaperTrail
RSpec.describe Config do
describe ".instance" do
it "returns the singleton instance" do
expect { described_class.instance }.to_not raise_error
end
end
describe ".new" do
it "raises NoMethodError" do
expect { described_class.new }.to raise_error(NoMethodError)
end
end
end
end