Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions test/test_refine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
require_relative '../lib/refine.rb'

class TestRefine < MiniTest::Unit::TestCase

def setup
@refine_project = Refine.new({ "project_name" => 'date_cleanup', "file_name" => '../test/dates.txt' })
@refine_project = Refine.new({ "project_name" => 'date_cleanup', "file_name" => './test/dates.txt' })
end

def test_refine_initializer_has_instance_variable_project_name
Expand All @@ -21,11 +21,11 @@ def test_get_all_project_metadata
end

def test_apply_operations
assert @refine_project.apply_operations( '../test/operations.json' )
assert @refine_project.apply_operations( './test/operations.json' )
end

def test_call
assert @refine_project.call( 'apply-operations', 'operations' => File.read( 'operations.json' ) )
assert @refine_project.call( 'apply-operations', 'operations' => File.read( './test/operations.json' ) )
end

def after_tests
Expand Down