Sha256: cb41da7afb396e7a93aebb5953e7c975e705115ae76cf6303dd2c33241701e74
Contents?: true
Size: 413 Bytes
Versions: 4
Compression:
Stored size: 413 Bytes
Contents
module ApplicationHelpers def with_book_fixture(&block) with_books_fixture('spec/fixtures/book.json', &block) end def with_books_fixture(file_path='spec/fixtures/books.json', &block) context "when using the " + file_path.split('/').last + " fixture" do let(:hashtree) { HashTree.from_json(File.read(file_path)) } subject { hashtree } self.instance_exec &block end end end
Version data entries
4 entries across 4 versions & 1 rubygems