Sha256: d0447da7dce973fb307d2e837452b032919e338b2d05b13cf5617b2f3fe5d62e
Contents?: true
Size: 408 Bytes
Versions: 3
Compression:
Stored size: 408 Bytes
Contents
require 'spec_helper.rb' describe SyntaxFix::Checker do before(:each) do @path = "#{File.expand_path('.')}/spec/fixtures" end it "fixes hash syntax" do fixed_content = File.open("#{@path}/test/fixed_test.txt") {|f| f.read} checker = SyntaxFix::Checker.new SyntaxFix::DirFile.any_instance.should_receive(:write_file).with(fixed_content) checker.fix_code("#{@path}/test") end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
syntax_fix-0.0.3 | spec/specs/checker_spec.rb |
syntax_fix-0.0.2 | spec/specs/checker_spec.rb |
syntax_fix-0.0.1 | spec/specs/checker_spec.rb |