-
### 結論
RSpecモデルテストを実行すると、
```
ActiveRecord::StatementInvalid:
Mysql2::Error: This connection is in use by: #
```
というエラーになり、詰まっております。
### 実装の目的
モデルテストを実行するため。
### 手順
私の行った手順は以下です。
(1)rspec-rai…
-
JRuby:
```
Script coverage disabled: unknown event: script_compiled
An error occurred while loading ./spec/rspec/memory_spec.rb.
Failure/Error: SLOT_SIZE = ObjectSpace.memsize_of(Object.new)
…
-
The app does not start with docker.
Steps to reproduce:
1. Clone repository into /opt/
2. Start with `make run`
3. Builds image
On startup the process exits with
```ERROR: for app Cannot sta…
-
Some of the individual tests are lightning fast with Zeus, and others are pretty dang slow.
If I do:
`time rspec spec/`
The result is:
```
Finished in 35.36 seconds
220 examples, 0 failures
real …
-
When creating a custom matcher and using it with a mock argument expectation, the `===` method should also be defined, otherwise, the match will fail.
Example:
``` ruby
expect(instance).to receive(:…
elado updated
10 years ago
-
Nil:
be_nil: Verifies that a value is nil.
Exceptions:
raise_error: Verifies that an exception is raised.
raise_error(ErrorClass): Verifies that an exception of the specified class is raised.
…
-
We have a quite complex JSON structure in which we have a mix of hashes and arrays. The root node is a Hash causing `include_unordered_json` to not be supported.
An example of our json (simplified)…
-
Hi!
Datamapper tests are enabled when building datamapper-mysql packages for Debian. They pass perfectly, except on the Freebsd and Hurd architecture, when one test fails:
The trace below is for Free…
-
We had some discussions about this years ago but I think it's time to clarify the requirements.
Of course, TruffleRuby would need pass the RSpec test suite, I think it's quite close to that if not …
-
## Summary
Currently there's a mix of RSpec matchers in Aruba which either work on stopped or started commands:
* Expect command to be stopped upfront:
* ~~https://github.com/cucumber/aru…