1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00
Commit graph

27 commits

Author SHA1 Message Date
Matijs van Zuijlen
cc6bbb5782 Enable warnings during spec runs 2015-01-23 14:02:49 +01:00
Christian Haase
d5748ce0e4 Remove example-alias 2015-01-14 22:36:07 -08:00
Ryan Fitzgerald
6d5eb0831b Enable should syntax for RSpec
We can always get rid of this if we switch all of the specs to use
`expect` instead, but until then we should probably make our RSpec
configuration match how our specs are written.
2014-08-18 15:17:18 -04:00
Josh Cheek
144d32e1d6 Switch test suite to RSpec
Removes Bacon and Mocha

Reasoning explained in this comment: https://github.com/pry/pry/issues/277#issuecomment-51708712

Mostly this went smoothly. There were a few errors that I fixed along
the way, e.g. tests that were failing but for various reasons still
passed. Should have documented them, but didn't think about it until
very near the end. But generaly, I remember 2 reasons this would happen:
`lambda { raise "omg" }.should.raise(RuntimeError, /not-omg/)` will pass
because the second argument is ignored by Bacon. And `1.should == 2`
will return false instead of raising an error when it is not in an it
block (e.g. if stuck in a describe block, that would just return false)

The only one that I felt unsure about was spec/helpers/table_spec.rb
`Pry::Helpers.tablify_or_one_line('head', %w(ing)).should == 'head: ing'`
This is wrong, but was not failing because it was in a describe block
instead of an it block.  In reality, it returns `"head: ing\n"`,
I updated the test to reflect this, though I don't know for sure
this is the right thing to do

This will fail on master until https://github.com/pry/pry/pull/1281 is merged.
This makes https://github.com/pry/pry/pull/1278 unnecessary.
2014-08-10 17:37:21 -06:00
Kyrylo Silin
3aa74d40df Revert "spec/helper.rb: remove the SimpleCov's relics"
This reverts commit 5d4c79fb13.

Whoops, my bad, SimpleCov *is* actually still present.
2014-05-30 23:43:25 +03:00
Kyrylo Silin
5d4c79fb13 spec/helper.rb: remove the SimpleCov's relics
It isn't included in the gemspec anymore.
2014-05-30 23:05:31 +03:00
Robert Gleeson
7e6f9e3ec3 alias clear as 'refresh'. 2014-03-15 03:05:19 +01:00
Robert Gleeson
477c0702f4 replace 'OpenStruct' with Pry::Config::Behavior in spec/. 2014-03-15 02:22:27 +01:00
Robert Gleeson
45cbc55c9f move development dependencies to Gemfile, & use Bundler.require(). 2014-03-15 01:50:21 +01:00
Ryan Fitzgerald
4e1f1d42bc Remove code made obsolete by Bundler dependency
Since 2cdf739baa started always loading
bundler/setup during tests, we can get rid of some manual load path
setup and dependency checking. We should also explicitly add bundler as
a development dependency.
2014-03-14 00:02:24 -07:00
Robert Gleeson
2cdf739baa fix tests on TracisCI, maybe 2014-03-14 05:51:17 +01: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
Robert Gleeson
91d412c044 remove openstruct dependency from all of pry. 2014-01-21 11:11:42 +01:00
yui-knk
9f9c72c82b Remove helpers for spec. Helpers for spec and specs for helper are mixed in spec/helpers, so remove helpers to spec/spec_helpers. 2013-12-21 23:20:42 +09:00
Ryan Fitzgerald
137db2c322 Add SimpleCov 2013-04-27 23:30:37 -07:00
Ryan Fitzgerald
6ee0f4a32b Add integration tester, failing spec 2012-12-23 00:03:29 -08:00
Ryan Fitzgerald
cbf19cc7a4 Move all fixtures into fixtures/ 2012-12-09 11:42:41 -08:00
Ryan Fitzgerald
e0bebb831d Move version output into private test helper 2012-12-08 17:14:25 -08:00
Ryan Fitzgerald
038bdf8a91 Move some testing code into spec/helpers/ 2012-12-08 17:14:25 -08:00
Ryan Fitzgerald
f0c61ac418 Add Mocha for mocking 2012-12-08 17:02:37 -08:00
John Mair
e9e2bb0360 move mock_pry to local spec/helper.rb 2012-12-09 00:05:39 +01:00
John Mair
4bf42ca006 move Pad to local helpers, and move more methods in PryTestHelpers 2012-12-09 00:01:18 +01:00
John Mair
31a9578228 cleaned up lib/pry/test/helper.rb
* removed most historicla junk from lib/pry/test/helper.rb
* relocated recalcitrant junk to the local spec/helper.rb (this isn't exposed to 3rd parties)
2012-12-07 21:41:05 +01:00
John Mair
d1489a59a3 moved test helper.rb to lib/pry/test/helper.rb, so plugins can use our test helpers 2012-11-28 02:05:30 +01:00
Conrad Irwin
a6c4c6950d Revert "Make whereami more consistent (and less cheeky) [Fixes #383]"
This reverts commit f937bb6097.
2012-11-18 16:42:29 -08:00
Conrad Irwin
f937bb6097 Make whereami more consistent (and less cheeky) [Fixes #383] 2012-11-18 16:29:48 -08:00
☈king
848b6bdbeb Rename for tabcompletion-friendliness. 2012-11-15 18:59:51 -06:00
Renamed from test/helper.rb (Browse further)