How do you run a specific test with test/spec (not a specific file, but a spec within a given file)?
With Test::Unit, I can run:
ruby path/to/test.rb --name=test_name_that_i_want_to_run
Thus far, I have not been able to figure out how to do this with test/spec specifications. I am wondering if the way that specifications are automatically named does ...
Answer Snippets (Read the full thread at stackoverflow):
Ruby my.
Take the following spec for example:
require 'rubygems' require 'spec' describe 'tests' do a single spec by using the -e flag and providing the portion specified by the it block.
|
|
I'm trying to understand the exact behavior of storage class specifiers in C99, and some GCC behavior seems not to follow the spec, unless I misunderstand the spec. From 6.2.2 (2):
Within one translation unit, each declaration of an identifier with internal...
Started by Dietrich Epp on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Your static....
(note the emphasized file scope identifier ).
The next paragraph, 6.2.2/3, is important:
If the declaration of a file scope identifier for an object or a function contains the storage-class specifier static, the identifier has internal linkage .
|
|
As a programmer, I feel burnt out if the management give me spec after spec, day after day. I think I can code 6 hours a day very focused, but non-stop coding does burn me out a little, especially it is 1 year or 18 months non-stop. A mere 1 week or 2...
Started by Jian Lin on
, 10 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
|
Ask your Facebook Friends
|
So anybody has a pic of the 98 spec rear upper arm (tubular) with stiffer bushings? thanks
Started by blueyes on
, 14 posts
by 9 people.
Answer Snippets (Read the full thread at ek9):
Thanks, much appreciated
anyone had actual experience on the 2?
is the supposedly stiffness as the ek9 manifolds of which are... .
The one on the left side is for the 96 spec and the right is for the 98 spec.
On there Found a pic on my files.
|
|
Toyota FJ Cruiser Bahrain Spec Vs KSA Spec Hi guys,
I'm in the market for an FJ Cruiser as an everyday beater car, I was just curious to know if there are any differences in the Spec and Pricing between Bahrain and KSA?
Cheers! Cadillac Escalade EXT
Yamaha...
Started by Rashdi on
, 20 posts
by 10 people.
Answer Snippets (Read the full thread at gulfgt):
spec , but warranty won't be valid here, kanoo won't accept any cars bought from out side Bahrain.
|
|
I want to be able to run a single spec file's tests — for the one file I'm editing, for example. rake spec executes all the specs. My project is not a Rails project, so rake spec:doc doesn't work.
Don't know if this matters, but here is my directory structure...
Started by Jonathan Tran on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
The raw invocation:
rake spec SPEC=spec/controllers/sessions_controller_spec.rb \ SPEC_OPTS="-e and use the 'spec' command:
spec path/to/spec/file.rb
In your case I think as long as your ./spec as....
|
|
I was looking through the Datamapper directories and opened up dm-core/tasks/dm.rb . Just generally speaking, what the heck is going on in this file? It looks like Greek to me. Particularly this thing about "specs" - what are those for? Is that similar...
Started by Hola on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
What you actually have there is a rake file technical clients and read through the ....
It's calling on spec to run your BDD specifications.
Check out rspec.
Spec files contain the specifications for behavior driven development.
|
|
I am adding a directory for services classes in my rails application: app/services
I would like to add specs for these classes in the directory: spec/services
I added a spec to spec/services, but running autospec does not run the example.
Is there a way...
Started by Lee on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Try adding this to your spec_helper.rb:
require 'services'
I believe I have found the answer to my:
Autotest.add_hook :initialize do |at| at.add_mapping(%r%^spec/services/.*_spec\.rb$%) do at.files_matching(%r%^spec/services....
|
|
I've pretty much never worked from a spec. Almost all assignments came from uber-vague descriptions. So...
How often are you handed a spec before writing code? How often are the specs "good"? (not just vague buzzwords from business development)
Cheers...
Started by MrDatabase on
, 12 posts
by 12 people.
Answer Snippets (Read the full thread at stackoverflow):
Particularly when the deliverable is to an external customer, we insist on a spec a spec, we create one ourselves....
But doing so customer/boss.
Generally if you want a spec you need to write it yourself.
I never have.
With the system.
|
|
What is Spec# I've been hearing about?
Started by Mateusz Kubiczek on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
Spec invariants even in the presence of callbacks....
Spec# is a formal language for API contracts (influenced by JML, AsmL, and Eiffel), which extends C# with constructs for non-null types, preconditions, postconditions, and object invariants.
|