search for: assert2

Displaying 7 results from an estimated 7 matches for "assert2".

Did you mean: assert
2009 Mar 26
0
assert2-0.4.6 provides assert_xhtml, an alternative to assert_select
...} end end Imagine adding all that to assert_select - it would get much harder to read, and more complex. assert_xhtml uses Nokogiri::HTML::Builder notation, so anything it can build, you can query. Version 0.4.6 adds all the following features. To begin, enter: gem install nokogiri assert2 == require ''assert2/xhtml'' == All assert{ 2.0 } dependencies are optional. If you have Nokogiri (>=1.2.2), you can test Rails views like this: user = users(:Moses) get :edit_user, :id => user.id assert_xhtml do form :action => ''/u...
2008 Apr 18
1
[LLVMdev] Disabling Verifier
Hi, I've noticed that the funcionality in the Verifier.cpp significantely slows down the compilation, especially for big basic blocks. In this case the llvm::DominatorTree::dominates() seems to consume a lot of time. Some debugging has shown that it is the Assert2() macro usage in the Verifier::visitInstruction(), arount this place: // Definition must dominate use unless use is unreachable! Assert2(DT->dominates(Op, &I) || !DT->dominates(&BB->getParent()->getEntryBlock(), BB), "Instruction does not dominate all...
2009 Feb 01
8
undefined method `inherit'' for Merb::Test::ExampleGroup
RSpeckers: I''m trying to install this into a Merb-generated RSpec rig: http://code.jeremyevans.net/doc/fixture_dependencies/ It requires inserting their test case into RSpec. This is the documented way to do it: describe ''Post'' do inherit FixtureDependencies::SequelTestCase And that leads to the syntax error in the subject line. (No stack trace is available
2009 Mar 12
0
assert_xhtml - test your HTML by example
...uild, you can specify by example. That freedom causes two issues: The ''self'' context is different inside this block, so you must pass variables in as closures. And an element with the same name as a Builder method, such as .select, need a bang: .select! Get the assertion, from assert2-0.3.8.gem, with these incantations: gem install assert2 nokogiri require ''assert2/xhtml'' # for Test::Unit::TestCase and derivatives Those of you using RSpec will know how to apply this Gist: http://gist.github.com/76136 Good hunting! -- Phlip http://www.zer...
2008 Mar 08
1
How to downgrade from rails 2.0.2
Somehow I have ended up with v2.0.2 on my Mac. I am running Leopard so am not sure whether this version came with it. Here are the various versions of components: macfizz$ rails -v Rails 2.0.2 macfizz$ ruby -v ruby 1.8.6 (2007-09-24 patchlevel 111) [universal-darwin9.0] macfizz$ gem -v 1.0.1 macfizz$ Anyway, for various reasons I''m not that happy with 2.0.2 and want to downgrade
2008 Mar 10
3
Need a simple forum or message board
I want to have a message board or forum in my site, I have looked at beast but have no clue how to use svn, and I have had no luck with savage beast either. Can anyone recommend a simple message board/forum that I could plugin and adjust with minimal effort. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are
2008 Mar 07
12
Types of apps to use Rails for?
I am a web developer using PHP and very limited JavaScript. I keep hearing about RoR and am interested in learning it, but before I make the jump I''d like to hear about the types of applications I should be using it for. On all the tutorials you see big apps like stores, social networking, shopping carts, etc. I don''t have any immediate plans to be building something that