Skip to content

Commit a6ef9d8

Browse files
committed
fixed spec
1 parent 52fdbfe commit a6ef9d8

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

ruby/hyper-model/spec/batch3/edge_cases_spec.rb

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,19 +135,16 @@ class TestComponent77 < HyperComponent
135135
FactoryBot.create(:todo, title: 'todo 2', completed: true)
136136
FactoryBot.create(:todo, title: 'todo 1', completed: false)
137137
FactoryBot.create(:todo, title: 'todo 2', completed: false)
138-
#evaluate_ruby "Hyperstack::Model.load { Todo.completed.find_by_title('todo 2').id }"
139138
expect_promise do
140139
Hyperstack::Model.load do
141140
Todo.completed.find_by_title('todo 2').id
142141
end
143142
end.to eq(Todo.completed.find_by_title('todo 2').id)
144-
binding.pry
145-
evaluate_ruby "Hyperstack::Model.load { Todo.completed.find_by_title('todo 3').present? }"
146-
evaluate_ruby do
143+
expect_promise do
147144
Hyperstack::Model.load do
148145
Todo.completed.find_by_title('todo 3').present?
149146
end
150-
end #.to be_falsy
147+
end.to be_falsy
151148
end
152149

153150
end

0 commit comments

Comments
 (0)