spec/definition_spec.rb in zapata-0.1.6 vs spec/definition_spec.rb in zapata-1.0.0
- old
+ new
@@ -1,20 +1,20 @@
-require 'spec_helper'
+# frozen_string_literal: true
describe Zapata::Revolutionist do
before(:all) do
@generated = exec_generation('app/models/test_definition.rb')
end
it '#in_optional_args' do
- has_block('#in_optional_args', %Q{
+ has_block('#in_optional_args', %{
expect(test_definition.in_optional_args(:audioslave)).to eq(:audioslave)
})
end
it '#use_optional' do
- has_block('#use_optional', %Q{
+ has_block('#use_optional', %{
expect(test_definition.use_optional(:audioslave)).to eq(:audioslave)
})
end
# it '#var_in_optional_args' do
@@ -28,16 +28,16 @@
# expect(test_definition.method_in_optional_args('I am falling')).to eq('I am falling')
# })
# end
it '#call_method_result_in_optional_args' do
- has_block('#call_method_result_in_optional_args', %Q{
+ has_block('#call_method_result_in_optional_args', %{
expect(test_definition.call_method_result_in_optional_args('Missing "fall_meth.first"')).to eq('Missing "fall_meth.first"')
})
end
it '#resursive_method' do
- has_block('#recursive_method', %Q{
+ has_block('#recursive_method', %{
expect(test_definition.recursive_method).to eq('Exception in RSpec')
})
end
end