add controller specs
This commit is contained in:
9
spec/support/expectations/has_content.rb
Normal file
9
spec/support/expectations/has_content.rb
Normal file
@ -0,0 +1,9 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require 'rspec/expectations'
|
||||
|
||||
RSpec::Matchers.define :has_content do |actual_content|
|
||||
match do |file|
|
||||
file.read == actual_content
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user