mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
copy edits [ci skip]
This commit is contained in:
parent
6754777adf
commit
26ec070b09
2 changed files with 4 additions and 4 deletions
|
@ -197,7 +197,7 @@ module ActiveRecord
|
|||
end
|
||||
end
|
||||
|
||||
# Updates a single attribute of an object, without having to call save on that object.
|
||||
# Updates a single attribute of an object, without having to explicitly call save on that object.
|
||||
#
|
||||
# * Validation is skipped.
|
||||
# * Callbacks are skipped.
|
||||
|
@ -209,7 +209,7 @@ module ActiveRecord
|
|||
update_columns(name => value)
|
||||
end
|
||||
|
||||
# Updates the attributes from the passed-in hash, without having to call save on that object.
|
||||
# Updates the attributes from the passed-in hash, without having to explicitly call save on that object.
|
||||
#
|
||||
# * Validation is skipped.
|
||||
# * Callbacks are skipped.
|
||||
|
|
|
@ -225,7 +225,7 @@ TIP: You can see all these rake tasks and their descriptions by running `rake --
|
|||
Running a test is as simple as invoking the file containing the test cases through Ruby:
|
||||
|
||||
```bash
|
||||
$ ruby -I test test/unit/post_test.rb
|
||||
$ ruby -Itest test/unit/post_test.rb
|
||||
|
||||
Loaded suite unit/post_test
|
||||
Started
|
||||
|
@ -240,7 +240,7 @@ This will run all the test methods from the test case. Note that `test_helper.rb
|
|||
You can also run a particular test method from the test case by using the `-n` switch with the `test method name`.
|
||||
|
||||
```bash
|
||||
$ ruby -I test test/unit/post_test.rb -n test_the_truth
|
||||
$ ruby -Itest test/unit/post_test.rb -n test_the_truth
|
||||
|
||||
Loaded suite unit/post_test
|
||||
Started
|
||||
|
|
Loading…
Reference in a new issue