module Thingfish::SpecHelpers
RSpec helper functions.
Constants
- FIXTURE_DIR
Load fixture data from the ThingFish spec data directory
Public Instance Methods
fixture_data( filename )
click to toggle source
Load and return the data from the fixture with the specified filename
.
# File lib/thingfish/spechelpers.rb, line 157 def fixture_data( filename ) fixture = FIXTURE_DIR + filename return fixture.open( 'r', encoding: 'binary' ) end