Sha256: bfb3050038d661b4e9cff37475cb81551795f3165784880592bf9624fc1b082c
Contents?: true
Size: 396 Bytes
Versions: 1
Compression:
Stored size: 396 Bytes
Contents
require "jasmine_fixture_builder/version" module JasmineFixtureBuilder RSpec::Matchers.define :save_fixture do |markup, fixture| fixture_path = Rails.root.join('spec/javascripts/fixtures') Dir.mkdir(fixture_path) unless File.exists?(fixture_path) fixture_file = File.join(fixture_path, fixture) File.open(fixture_file, 'w') do |file| file.puts(markup) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jasmine_fixture_builder-0.0.1 | lib/jasmine_fixture_builder.rb |