add controller specs

This commit is contained in:
Karol
2019-12-06 17:25:00 +01:00
parent 4a77536c5f
commit 5625fa63b0
11 changed files with 326 additions and 7 deletions

View 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