test/terminal_test.rb in assert-view-0.1.0 vs test/terminal_test.rb in assert-view-0.2.0
- old
+ new
@@ -1,32 +1,22 @@
require 'assert'
-require 'assert/options'
require 'assert/view/terminal'
+require 'stringio'
module Assert::View
- class TerminalOptionsTest < Assert::Context
- desc "options for the terminal view"
- subject do
- Assert::View::Terminal.options
+ class TerminalTest < Assert::Context
+ desc "the terminal view"
+ setup do
+ @view = Assert::View::Terminal.new(Assert::Suite.new, StringIO.new("", "w+"))
end
+ subject{ @view }
- should "be an Options::Base object" do
- assert_kind_of Assert::Options::Base, subject
- end
+ should have_instance_methods :loaded_tests_statement, :running_tests_statement
+ should have_instance_methods :detailed_tests, :detailed_results, :show_result_details?
+ should have_instance_methods :result_output_start_msg, :result_output_end_msg
+ should have_instance_methods :results_breakdown_statement, :result_count_statement
+ should have_instance_methods :run_time_statement
- should "default the styled option" do
- assert_equal false, subject.default_styled
- end
-
- should "default its result styles" do
- assert_equal :green, subject.default_passed_styles
- assert_equal [:red, :bold], subject.default_failed_styles
- assert_equal :magenta, subject.default_ignored_styles
- assert_equal :cyan, subject.default_skipped_styles
- assert_equal [:yellow, :bold], subject.default_errored_styles
- end
-
end
-
end