Commit Graph

14 Commits

Author SHA1 Message Date
Kyrylo Silin e61354693f Add .rspec and require 'helper' from there
Just discovered this nice feature of RSpec where it can load all files for
us. Works with `bundle exec rake` and `bundle exec rspec spec/file_spec.rb`,
which covers all use cases.
2018-11-18 14:04:44 +08:00
Kyrylo Silin 0fc57889a1 rubocop: fix offences of the Lint/UnusedBlockArgument cop 2018-11-11 20:22:03 +08:00
Kyrylo Silin 04d4f424e3 rubocop: fix offences regarding spaces
Fixes offences of the following cops:

* Layout/SpaceAroundEqualsInParameterDefault
* Layout/SpaceAroundOperators
* Layout/SpaceBeforeBlockBraces
* Layout/SpaceInsideBlockBraces
2018-11-04 17:34:24 +08:00
Kyrylo Silin 187c199e77 Deprecate Pry::Platform and introduce Pry::Helpers::Platform
`Pry::Platform` really looks like a helper and therefore should be defined as
one. Invoking `Pry::Platform` emits a warning now. Users are encouraged to use
`Pry::Helpers::Platform`.
2018-11-02 01:52:09 +08:00
Kyrylo Silin 96c6958cc6 specs: convert to shoulds to expects 2015-03-10 22:49:29 +02:00
Christian Haase 367d02c0d6 Remove slash-change of windows paths 2014-09-12 16:34:43 +02:00
Conrad Irwin d220af1061 Inject _pry_ into Pry::Editor 2014-05-01 01:51:01 -07:00
Robert Gleeson 74135c1890 allow for tests to be run with ease.
'bacon spec/config_spec.rb' instead of 'bacon -I spec spec/config_spec.rb'
2014-03-14 05:31:24 +01:00
Kyrylo Silin 92a1b86e1e Fix errors in "edit_spec.rb" and "editor_spec.rb"
Basically, the condition was a bit wrong. Let's hope this commit fixes
it.
2013-01-14 18:43:19 +02:00
Kyrylo Silin 05d4d13f37 Fix errors on Rubinius and JRuby
These implementations have slightly different APIs for getting your
temp directory path.
2013-01-14 16:44:09 +01:00
Kyrylo Silin ae3f534b35 Fix errors in tests on Windows
Some tests are still failing, though. This commit fixes wrong usage of
temporary paths on Windows. Please, note: the `edit` command is working
well; the issue is in poor tests.

Prettify some ugly code in `spec/editor_spec.rb`.
2013-01-14 16:44:09 +01:00
Kyrylo Silin 9df47232cc Use proper temp directories for each OS
Also, there was a failing test on Windows ("should shell-escape files").
You will see it if you're running tests on Windows. Make it conditional.
2013-01-14 16:44:09 +01:00
Conrad Irwin d29f6b5c04 Fix indentation (HARDER) 2013-01-14 16:44:09 +01:00
Conrad Irwin 15caf5fb87 Only shellword escape filenames in system calls on linux 2013-01-14 16:44:09 +01:00