What are valid values for rspec :type?
In an rspec
test, it is possible to specify the type of the test e.g.
it 'should behave', type: :system do
...
end
What are the valid values of :type, if so, where is it documented.
ruby-on-rails rspec
add a comment |
In an rspec
test, it is possible to specify the type of the test e.g.
it 'should behave', type: :system do
...
end
What are the valid values of :type, if so, where is it documented.
ruby-on-rails rspec
For those voting to close this, the place that this information is found in the Relish documentation, is under 'Directory', which once you understand it is obvious, but hardly likely to come up in a google search looking for valid values for rspec :type
– Obromios
Nov 15 '18 at 20:35
As well, there are custom types, so this question is useful for someone trying to work out if a particular spec type is custom or standard.
– Obromios
Nov 22 '18 at 4:52
add a comment |
In an rspec
test, it is possible to specify the type of the test e.g.
it 'should behave', type: :system do
...
end
What are the valid values of :type, if so, where is it documented.
ruby-on-rails rspec
In an rspec
test, it is possible to specify the type of the test e.g.
it 'should behave', type: :system do
...
end
What are the valid values of :type, if so, where is it documented.
ruby-on-rails rspec
ruby-on-rails rspec
asked Nov 14 '18 at 23:10
ObromiosObromios
4,39023167
4,39023167
For those voting to close this, the place that this information is found in the Relish documentation, is under 'Directory', which once you understand it is obvious, but hardly likely to come up in a google search looking for valid values for rspec :type
– Obromios
Nov 15 '18 at 20:35
As well, there are custom types, so this question is useful for someone trying to work out if a particular spec type is custom or standard.
– Obromios
Nov 22 '18 at 4:52
add a comment |
For those voting to close this, the place that this information is found in the Relish documentation, is under 'Directory', which once you understand it is obvious, but hardly likely to come up in a google search looking for valid values for rspec :type
– Obromios
Nov 15 '18 at 20:35
As well, there are custom types, so this question is useful for someone trying to work out if a particular spec type is custom or standard.
– Obromios
Nov 22 '18 at 4:52
For those voting to close this, the place that this information is found in the Relish documentation, is under 'Directory', which once you understand it is obvious, but hardly likely to come up in a google search looking for valid values for rspec :type
– Obromios
Nov 15 '18 at 20:35
For those voting to close this, the place that this information is found in the Relish documentation, is under 'Directory', which once you understand it is obvious, but hardly likely to come up in a google search looking for valid values for rspec :type
– Obromios
Nov 15 '18 at 20:35
As well, there are custom types, so this question is useful for someone trying to work out if a particular spec type is custom or standard.
– Obromios
Nov 22 '18 at 4:52
As well, there are custom types, so this question is useful for someone trying to work out if a particular spec type is custom or standard.
– Obromios
Nov 22 '18 at 4:52
add a comment |
1 Answer
1
active
oldest
votes
From the Relish documentation
- Model specs: type: `:model`
- Controller specs: type: `:controller`
- Request specs: type: `:request`
- Feature specs: type: `:feature`
- View specs: type: `:view`
- Helper specs: type: `:helper`
- Mailer specs: type: `:mailer`
- Routing specs: type: `:routing`
- Job specs: type: `:job`
- System specs: type: `:system`
Also, as commented by arieljuod, you can have custom spec types
2
Just for completeness, those are the default, but it can be anything defining custom types typefast.blog/custom-spec-types-with-rspec
– arieljuod
Nov 15 '18 at 1:29
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53310124%2fwhat-are-valid-values-for-rspec-type%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
From the Relish documentation
- Model specs: type: `:model`
- Controller specs: type: `:controller`
- Request specs: type: `:request`
- Feature specs: type: `:feature`
- View specs: type: `:view`
- Helper specs: type: `:helper`
- Mailer specs: type: `:mailer`
- Routing specs: type: `:routing`
- Job specs: type: `:job`
- System specs: type: `:system`
Also, as commented by arieljuod, you can have custom spec types
2
Just for completeness, those are the default, but it can be anything defining custom types typefast.blog/custom-spec-types-with-rspec
– arieljuod
Nov 15 '18 at 1:29
add a comment |
From the Relish documentation
- Model specs: type: `:model`
- Controller specs: type: `:controller`
- Request specs: type: `:request`
- Feature specs: type: `:feature`
- View specs: type: `:view`
- Helper specs: type: `:helper`
- Mailer specs: type: `:mailer`
- Routing specs: type: `:routing`
- Job specs: type: `:job`
- System specs: type: `:system`
Also, as commented by arieljuod, you can have custom spec types
2
Just for completeness, those are the default, but it can be anything defining custom types typefast.blog/custom-spec-types-with-rspec
– arieljuod
Nov 15 '18 at 1:29
add a comment |
From the Relish documentation
- Model specs: type: `:model`
- Controller specs: type: `:controller`
- Request specs: type: `:request`
- Feature specs: type: `:feature`
- View specs: type: `:view`
- Helper specs: type: `:helper`
- Mailer specs: type: `:mailer`
- Routing specs: type: `:routing`
- Job specs: type: `:job`
- System specs: type: `:system`
Also, as commented by arieljuod, you can have custom spec types
From the Relish documentation
- Model specs: type: `:model`
- Controller specs: type: `:controller`
- Request specs: type: `:request`
- Feature specs: type: `:feature`
- View specs: type: `:view`
- Helper specs: type: `:helper`
- Mailer specs: type: `:mailer`
- Routing specs: type: `:routing`
- Job specs: type: `:job`
- System specs: type: `:system`
Also, as commented by arieljuod, you can have custom spec types
edited Nov 22 '18 at 4:50
Obromios
4,39023167
4,39023167
answered Nov 15 '18 at 1:22
mkrlmkrl
470214
470214
2
Just for completeness, those are the default, but it can be anything defining custom types typefast.blog/custom-spec-types-with-rspec
– arieljuod
Nov 15 '18 at 1:29
add a comment |
2
Just for completeness, those are the default, but it can be anything defining custom types typefast.blog/custom-spec-types-with-rspec
– arieljuod
Nov 15 '18 at 1:29
2
2
Just for completeness, those are the default, but it can be anything defining custom types typefast.blog/custom-spec-types-with-rspec
– arieljuod
Nov 15 '18 at 1:29
Just for completeness, those are the default, but it can be anything defining custom types typefast.blog/custom-spec-types-with-rspec
– arieljuod
Nov 15 '18 at 1:29
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53310124%2fwhat-are-valid-values-for-rspec-type%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
For those voting to close this, the place that this information is found in the Relish documentation, is under 'Directory', which once you understand it is obvious, but hardly likely to come up in a google search looking for valid values for rspec :type
– Obromios
Nov 15 '18 at 20:35
As well, there are custom types, so this question is useful for someone trying to work out if a particular spec type is custom or standard.
– Obromios
Nov 22 '18 at 4:52