tracks/ruby/test/generator/files/track_files_test.rb in trackler-2.1.0.36 vs tracks/ruby/test/generator/files/track_files_test.rb in trackler-2.1.0.37
- old
+ new
@@ -9,14 +9,13 @@
)
class TestTrackFiles
def initialize
@paths = FixturePaths
- @slug = 'alpha-beta'
- @exercise_name = 'alpha_beta'
+ @exercise = Exercise.new(slug: 'alpha-beta')
end
- attr_accessor :paths, :slug, :exercise_name
+ attr_reader :paths, :exercise
include TrackFiles
end
def test_tests_version
subject = TestTrackFiles.new
@@ -42,12 +41,12 @@
class TestTrackFilesUseDefault
def initialize
@paths = FixturePaths
- @slug = 'notemplate'
+ @exercise = Exercise.new(slug: 'notemplate')
end
- attr_reader :paths, :slug
+ attr_reader :paths, :exercise
include TrackFiles
end
def test_default_tests_template
subject = TestTrackFilesUseDefault.new