spec/unit/mutant/subject_spec.rb in mutant-0.8.0 vs spec/unit/mutant/subject_spec.rb in mutant-0.8.1
- old
+ new
@@ -1,13 +1,16 @@
RSpec.describe Mutant::Subject do
let(:class_under_test) do
Class.new(described_class) do
def expression
- Mutant::Expression.parse('SubjectA')
+ Mutant::Expression::Namespace::Exact.new(scope_name: 'SubjectA')
end
def match_expressions
- [expression] << Mutant::Expression.parse('SubjectB')
+ [
+ expression,
+ Mutant::Expression::Namespace::Exact.new(scope_name: 'SubjectB')
+ ]
end
end
end
let(:object) { class_under_test.new(context, node) }