spec/spec_helper.rb in netprint-0.3.1 vs spec/spec_helper.rb in netprint-0.3.3

- old
+ new

@@ -16,9 +16,17 @@ # Run specs in random order to surface order dependencies. If you find an # order dependency and want to debug it, you can fix the order by providing # the seed, which is printed after each run. # --seed 1234 config.order = 'random' + + def fixture_file(name) + File.expand_path(File.dirname(__FILE__) + '/fixtures/' + name) + end + + def read_fixture_file(name) + open(fixture_file(name)).read + end end RSpec::Matchers.define :be_checked do |name, value| match do |form| radiobutton = Object.new